Skip to content

Commit

Permalink
troubleshooting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
timbastin committed Feb 11, 2024
1 parent 8e7faa0 commit c18b2af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ COPY . /go/src/app
RUN go get -d -v ./...

# Compiling
RUN go build -o /go/bin/app
RUN go build -o -buildvcs=false /go/bin/app

FROM gcr.io/distroless/base:nonroot
COPY --from=build-env --chown=nonroot:nonroot /go/bin/app /

# Run as a non root user.
USER nonroot

Expand Down

0 comments on commit c18b2af

Please sign in to comment.