Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a7b33c7c5 |
+4
-5
@@ -9,13 +9,12 @@ RUN golangci-lint run --config .golangci.yml ./...
|
||||
|
||||
# Test phase. -race needs cgo and so a C compiler, which the Debian Go
|
||||
# image ships and the alpine one does not. The tests run as an
|
||||
# unprivileged user: root bypasses file mode bits, which would make the
|
||||
# permission tests (expecting EACCES on a 0000 file) spuriously pass with
|
||||
# no error.
|
||||
# unprivileged user: root can read a file with mode 0000, so the
|
||||
# permission test would fail.
|
||||
# golang:1.25.7-trixie, 2026-10-06
|
||||
FROM golang@sha256:2b174ffcf56c7ad0c47d30d2630693265639ddf2a5141149c2da34db921791b4 AS test
|
||||
RUN useradd --create-home builder
|
||||
USER builder
|
||||
RUN useradd --create-home testuser
|
||||
USER testuser
|
||||
WORKDIR /src
|
||||
COPY go.mod go.sum ./
|
||||
RUN go mod download
|
||||
|
||||
Reference in New Issue
Block a user