Skip to content

Commit

Permalink
Merge branch 'ci/image' into ci/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
y-eight committed Nov 30, 2023
2 parents 2a67673 + cd8b9d9 commit a2e50e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ RUN go mod verify
RUN CGO_ENABLED=0 go build -ldflags "-s -w -X main.version=${VERSION}" -o sparrow .

FROM scratch
COPY --from=gobuild /app/sparrow /sparrow
COPY --from=gobuild /etc/passwd /etc/passwd
COPY --from=gobuild /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=gobuild /app/sparrow /sparrow

USER sparrow
ENTRYPOINT ["/sparrow", "run"]

0 comments on commit a2e50e7

Please sign in to comment.