Docker build for slideshow app.

This commit is contained in:
2020-03-14 13:37:02 -07:00
parent 2ee2a98c7d
commit 737b290cc0
5 changed files with 17 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM rust:latest AS build-env
COPY ./ /src/
COPY ./dockerfiles/netrc /root/.netrc
RUN mkdir /root/.cargo
COPY ./dockerfiles/cargo-config /.cargo/config
RUN apt-get update && apt-get install -y strace build-essential clang
WORKDIR /src
RUN cargo version && cargo install --path .
FROM rust:slim
COPY --from=build-env /usr/local/cargo/bin/photosync /usr/bin/