Skip to content

Commit f13aac6

Browse files
committed
Dockerfile: Remove redundant build step
According to the comment, this step pre-populates the cache. However, the actual build step also populates the cache, so any additional work done by this step is redundant.
1 parent 0f2ec41 commit f13aac6

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ RUN --mount=type=cache,target=/go/pkg/mod \
3434
# Copy the sources
3535
COPY ./ ./
3636

37-
# Cache the go build into the the Go’s compiler cache folder so we take benefits of compiler caching across docker build calls
38-
RUN --mount=type=cache,target=/root/.cache/go-build \
39-
--mount=type=cache,target=/go/pkg/mod \
40-
go build .
41-
4237
# Build
4338
ARG package=.
4439
ARG ARCH

0 commit comments

Comments
 (0)