Skip to content

Commit

Permalink
feat: docker image is now based on noroot distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
fevral13 committed Oct 16, 2023
1 parent 8a116fb commit 6627aeb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/target
.idea
.vscode
.vscode
.DS_Store
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ COPY --from=cacher /usr/local/cargo /usr/local/cargo
RUN rustup update
RUN cargo build --release

FROM gcr.io/distroless/cc as runtime
FROM gcr.io/distroless/cc:nonroot as runtime
WORKDIR /
COPY --from=builder /app/target/release/evalrs /
COPY --from=builder /app/config /config
ENTRYPOINT ["./evalrs"]

0 comments on commit 6627aeb

Please sign in to comment.