dockerfile: keep context mount as read only (#4167)
This commit is contained in:
commit
cd0ad552df
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ FROM base AS build
|
|||
ARG TARGETPLATFORM
|
||||
ARG LDFLAGS="-s -w"
|
||||
ARG BUILDTAGS="include_gcs"
|
||||
RUN --mount=type=bind,target=/src,rw \
|
||||
RUN --mount=type=bind,target=/src \
|
||||
--mount=type=cache,target=/root/.cache/go-build \
|
||||
--mount=target=/go/pkg/mod,type=cache \
|
||||
--mount=type=bind,source=/tmp/.ldflags,target=/tmp/.ldflags,from=version \
|
||||
|
|
Loading…
Reference in a new issue