aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorNathan Perry <avaglir@gmail.com>2018-09-24 12:14:37 -0400
committerNathan Perry <avaglir@gmail.com>2018-09-24 12:14:37 -0400
commit1d441876933b96b33439088d7cd0ca27678ab7c8 (patch)
tree440fe2b8c5528a28774773a6f73e44bc8448f7f7 /Dockerfile
parent12be51078f24cca0f7ceccb0885d1e60a0ae2148 (diff)
dockerize
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"]