From d0b78f5e1ce03382fa8373da93e515e0a8b426c0 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 22 Nov 2023 09:49:44 +0100 Subject: [PATCH] dockerfile: keep context mount as read only Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6b87ab68..77f441c2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \