Skip to content

Commit

Permalink
kaniko platform
Browse files Browse the repository at this point in the history
  • Loading branch information
arttor committed Apr 24, 2024
1 parent 04239d5 commit 02ee23d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ ARG SERVICE=worker
RUN CGO_ENABLED=0 GO111MODULE=on GOOS=$GOOS GOARCH=$GOARCH go build -ldflags="-X 'main.version=$GIT_TAG' -X 'main.commit=$GIT_COMMIT'" -o chorus ./cmd/${SERVICE}

# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM --platform=$TARGETPLATFORM gcr.io/distroless/static:nonroot
USER nonroot:nonroot
FROM --platform=$TARGETPLATFORM scratch
WORKDIR /bin

COPY --chown=nonroot:nonroot --from=builder /build/chorus chorus
COPY --from=builder /build/chorus chorus

CMD ["chorus"]

0 comments on commit 02ee23d

Please sign in to comment.