Dockerfile added
Some checks failed
/ cargo test (push) Has been cancelled

This commit is contained in:
Karcsesz 2024-03-17 22:49:30 +01:00
parent 8b9fb53ca5
commit eb6092ae72

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM rust:latest as builder
LABEL authors="karcsesz"
ARG target=x86_64-unknown-linux-musl
RUN apt update && apt install -y musl-tools musl-dev
RUN update-ca-certificates
RUN rustup target add $target
WORKDIR /fingerlink
COPY . .
RUN cargo build --target $target --release
FROM scratch
WORKDIR /fingerlink
COPY --from=builder /fingerlink/target/x86_64-unknown-linux-musl/release/fingerlink /fingerlink/fingerlink
ENTRYPOINT ["/fingerlink/fingerlink", "serve"]
CMD ["--help"]