Skip to content

Commit

Permalink
Fix Dockerimage on Selinux Hosts (#1)
Browse files Browse the repository at this point in the history
This is just the same z like in volume mounts. On selinux it otherwise
causes that commands fail with permission denied. Tested with podman on
fedora which has selinux enabled.

Signed-off-by: Marcel <[email protected]>
  • Loading branch information
MTRNord authored Mar 16, 2024
1 parent 5de04eb commit aaab3a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ FROM --platform=${BUILDPLATFORM} base AS build
WORKDIR /src
ARG TARGETOS
ARG TARGETARCH
RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
RUN --mount=target=.,z \
--mount=type=cache,target=/root/.cache/go-build,z \
--mount=type=cache,target=/go/pkg/mod,z \
USERARCH=`go env GOARCH` \
GOARCH="$TARGETARCH" \
GOOS="linux" \
Expand Down

0 comments on commit aaab3a0

Please sign in to comment.