Skip to content

Commit

Permalink
build: copy required go components to reduce cache invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Oct 3, 2024
1 parent 05887c3 commit 8b2eba1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ RUN go install github.com/a8m/envsubst/cmd/[email protected]

WORKDIR /app

COPY . ./
COPY go.mod go.mod
COPY go.sum go.sum

COPY main.go main.go
COPY cmd/ cmd/
COPY internal/ internal/

ARG BUILD
ARG GO_VER
Expand Down

0 comments on commit 8b2eba1

Please sign in to comment.