From b8305dcdf302e4b9c871dc0d4311759f9076d87b Mon Sep 17 00:00:00 2001 From: Joao Duarte Date: Fri, 24 May 2024 14:17:32 -0400 Subject: [PATCH] chore: Tweak deployment --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index ddc0739..e9536f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,9 @@ FROM rust:1.78.0-slim-bullseye AS build WORKDIR /usr/src/generic-merge -COPY . . -RUN cargo build --locked --release +COPY . . +RUN cargo build --release -FROM alpine:3.14 -COPY --from=build /usr/src/generic-merge/target/release/* /usr/local/bin -ENTRYPOINT [ "/usr/local/bin/generic-merge" ] +FROM gcr.io/distroless/cc-debian12 +COPY --from=build /usr/src/generic-merge/target/release/generic-merge / +CMD [ "./generic-merge" ] \ No newline at end of file