Skip to content

Commit

Permalink
fix(docker): switch base image from distroless to debian:12-slim for …
Browse files Browse the repository at this point in the history
…better compatibility and add docker-compose binary to the image
  • Loading branch information
Wahib-L committed Jan 14, 2025
1 parent a9f2950 commit 93138a1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
9 changes: 0 additions & 9 deletions .gitlab-ci.yml

This file was deleted.

8 changes: 5 additions & 3 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ COPY . /app
RUN cargo build --release


FROM gcr.io/distroless/cc-debian12 AS final
COPY --from=build /app/target/release/wrpt .
FROM debian:12-slim AS final

ENTRYPOINT ["./wrpt"]
COPY --from=build /app/target/release/wrpt /usr/bin/
COPY --from=docker/compose-bin:2.17.0 /docker-compose /usr/bin/compose

ENTRYPOINT ["/bin/wrpt"]

0 comments on commit 93138a1

Please sign in to comment.