We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef25243 commit 103c4d1Copy full SHA for 103c4d1
1 file changed
windows/Dockerfile
@@ -9,10 +9,16 @@ ENV CGO_ENABLED=0
9
10
WORKDIR /app
11
12
+# Switch to admin user for module operations
13
+USER ContainerAdministrator
14
+
15
# Install source deps
16
COPY go.mod go.sum ./
17
RUN go mod download
18
19
+# Switch back to regular user for security
20
+USER ContainerUser
21
22
# Copy source & build
23
COPY . .
24
RUN go build -v -ldflags "-s" -o /bin/ryuk
0 commit comments