aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..92c9cf4
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,22 @@
+FROM rustlang/rust:nightly
+
+RUN apt-get update -yqq && apt-get install -yqq libsodium-dev
+
+WORKDIR /usr/src/thulani
+COPY src ./src
+COPY Cargo.toml ./
+
+RUN cargo fetch
+
+COPY .env ./
+
+RUN cargo build --release
+
+FROM python:3
+RUN pip install youtube-dl
+RUN apt-get update -yqq && apt-get install -yqq libsodium18 ffmpeg
+
+COPY --from=0 /usr/src/thulani/target/release/thulani .
+COPY .env ./
+
+CMD ["./thulani"]