Add a Dockerfile

This commit is contained in:
Emi Simpson 2021-11-09 13:09:19 -05:00
parent f9d9a361c3
commit 4c028c0542
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 10 additions and 0 deletions

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM rust:1.56-alpine3.13 AS builder
RUN apk update
RUN apk add musl-dev
ADD . .
RUN cargo build --target=x86_64-unknown-linux-musl --release
FROM scratch
COPY --from=builder target/x86_64-unknown-linux-musl/release/faery-ring /
ENTRYPOINT ["/faery-ring"]
CMD ["/domains.txt"]