We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1faf40b commit 7b74eb9Copy full SHA for 7b74eb9
1 file changed
Dockerfile
@@ -1,6 +1,8 @@
1
FROM golang:1.25-alpine as app-builder
2
WORKDIR /go/src/app
3
4
+RUN echo "nobody:x:65534:65534:nobody:/nonexistent:/usr/sbin/nologin" > /etc/passwd.nobody
5
+
6
COPY src .
7
8
RUN CGO_ENABLED=0 go install -ldflags '-extldflags "-static"' -tags timetzdata
@@ -10,7 +12,10 @@ FROM scratch
10
12
11
13
LABEL maintainer="git@sktan.com"
14
15
+COPY --from=app-builder /etc/passwd.nobody /etc/passwd
16
COPY --from=app-builder /go/bin/aws-codeartifact-proxy /aws-codeartifact-proxy
17
COPY --from=app-builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
18
19
+USER 65534
20
21
ENTRYPOINT ["/aws-codeartifact-proxy"]
0 commit comments