Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
CareyWang authored Oct 9, 2023
1 parent 64d3437 commit d446e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ RUN apk update && apk add upx
WORKDIR /app
COPY main.go go.mod go.sum .
RUN go mod tidy
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o myurls main.go \
RUN CGO_ENABLED=0 go build -ldflags="-s -w" -o myurls main.go \
&& upx myurls

FROM scratch
Expand Down

0 comments on commit d446e60

Please sign in to comment.