Skip to content

Commit

Permalink
Use necessary files only
Browse files Browse the repository at this point in the history
This improves cache hits and avoid this:
docker-library/golang#415
  • Loading branch information
misery committed May 6, 2022
1 parent f138835 commit bcb7552
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
@@ -1,7 +1,7 @@
FROM golang:1.18-alpine AS builder

WORKDIR /src
COPY . .
COPY main.go go.mod go.sum /src/
RUN CGO_ENABLED=0 go build -ldflags="-s -w"


Expand Down

0 comments on commit bcb7552

Please sign in to comment.