Skip to content

Commit

Permalink
example: even smaller docker image size
Browse files Browse the repository at this point in the history
  • Loading branch information
EwenQuim committed Feb 5, 2025
1 parent c06b512 commit 8020527
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/full-app-gourmet/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ WORKDIR /app
COPY go.mod go.sum /app/
RUN go mod download
COPY . .
RUN --mount=type=cache,target="/root/.cache/go-build" CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gourmet .
RUN --mount=type=cache,target="/root/.cache/go-build" CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o gourmet .

FROM alpine:latest
WORKDIR /app
Expand Down

0 comments on commit 8020527

Please sign in to comment.