Skip to content

Commit 103c4d1

Browse files
authored
fix: run mod download with ContainerAdministrator (#194)
1 parent ef25243 commit 103c4d1

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

windows/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,16 @@ ENV CGO_ENABLED=0
99

1010
WORKDIR /app
1111

12+
# Switch to admin user for module operations
13+
USER ContainerAdministrator
14+
1215
# Install source deps
1316
COPY go.mod go.sum ./
1417
RUN go mod download
1518

19+
# Switch back to regular user for security
20+
USER ContainerUser
21+
1622
# Copy source & build
1723
COPY . .
1824
RUN go build -v -ldflags "-s" -o /bin/ryuk

0 commit comments

Comments
 (0)