Skip to content

Commit

Permalink
update workdir dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
LeonardoLordelloFontes committed Oct 29, 2024
1 parent 69b413f commit 2c6c033
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# Builder image
FROM cgr.dev/chainguard/go@sha256:ef5ed415d03d60169f72db591ac2f7fc3f8dd8de388956dd9355793601544463 AS builder

WORKDIR /app

#Copy go mod and sum files
COPY go.mod .
COPY go.sum .
Expand All @@ -20,6 +22,8 @@ RUN GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -a -installsuffix cgo -o /
# Runtime image
FROM cgr.dev/chainguard/git@sha256:0663e8c8a5c6fcad6cc2c08e7668d7b46f7aee025a923cee19f69475e187752a

WORKDIR /app

USER 65532

COPY --from=builder /app/2ms .
Expand Down

0 comments on commit 2c6c033

Please sign in to comment.