add dockerfile

This commit is contained in:
Robin Appelman 2020-11-30 01:40:52 +01:00
commit bcd2169ff0
2 changed files with 13 additions and 0 deletions

1
.dockerignore Normal file
View file

@ -0,0 +1 @@
target

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
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/api-test /
CMD ["/api-test"]