diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-09-24 12:14:37 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-09-24 12:14:37 -0400 |
| commit | 1d441876933b96b33439088d7cd0ca27678ab7c8 (patch) | |
| tree | 440fe2b8c5528a28774773a6f73e44bc8448f7f7 /Dockerfile | |
| parent | 12be51078f24cca0f7ceccb0885d1e60a0ae2148 (diff) | |
dockerize
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 22 |
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"] |
