docker setup

This commit is contained in:
Robin Appelman 2020-11-15 17:28:50 +01:00
commit f7bd166df2
5 changed files with 47 additions and 3 deletions

13
Dockerfile Normal file
View file

@ -0,0 +1,13 @@
FROM ekidd/rust-musl-builder AS build
ADD . ./
RUN sudo chown -R rust:rust .
RUN cargo build --release
FROM scratch
COPY --from=build /home/rust/src/target/x86_64-unknown-linux-musl/release/taspromto /
EXPOSE 80
CMD ["/taspromto"]