Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
Switch to scratch base image
  • Loading branch information
jcortejoso authored Oct 20, 2023
1 parent de6fa72 commit 0595008
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ RUN --mount=type=cache,target=/root/.cache/go-build,sharing=private \
go build -o bin/image-annotator-webhook .

# ---
# FROM scratch AS run
FROM ubuntu:latest
FROM scratch AS run
# Switch for debugging
# FROM ubuntu:latest

COPY --from=build /webhook/bin/image-annotator-webhook /usr/local/bin/

Expand Down

0 comments on commit 0595008

Please sign in to comment.