Skip to content

Commit

Permalink
add back go mod mount
Browse files Browse the repository at this point in the history
Signed-off-by: Nianyu Shen <[email protected]>
  • Loading branch information
nianyush committed Sep 4, 2024
1 parent 074c8e1 commit e214ccf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ COPY . /src/
WORKDIR /src

ENV GO111MODULE=on
RUN if [ ${CRYPTO_LIB} ]; \
RUN --mount=type=cache,sharing=locked,id=gomod,target=/go/pkg/mod/cache \
--mount=type=cache,sharing=locked,id=goroot,target=/root/.cache/go-build \
if [ ${CRYPTO_LIB} ]; \
then \
go-build-fips.sh -a -o kube-vip ;\
else \
Expand Down

0 comments on commit e214ccf

Please sign in to comment.