Skip to content

Commit

Permalink
feat(golang-cobra): shrink the Dockerfile binary through UPX
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsimonemms committed Aug 25, 2024
1 parent 89bd11f commit 205721d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions golang-cobra/{{ cookiecutter.project_name }}/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ RUN go build \
-o /app/app
ENTRYPOINT /app/app

FROM alpine
RUN apk --no-cache add ca-certificates
FROM scratch
WORKDIR /app
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /app/app /app
ENTRYPOINT [ "/app/app" ]

0 comments on commit 205721d

Please sign in to comment.