From 1d441876933b96b33439088d7cd0ca27678ab7c8 Mon Sep 17 00:00:00 2001 From: Nathan Perry Date: Mon, 24 Sep 2018 12:14:37 -0400 Subject: dockerize --- Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') 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"] -- cgit v1.3.1