We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe6b456 commit d98e03fCopy full SHA for d98e03f
Containerfile
@@ -15,8 +15,17 @@ ENV GO111MODULE=on \
15
RUN go mod tidy && \
16
go build -ldflags "-X 'main.version=${VERSION}'" -o /app/bin/gitlab-sync ./cmd/main.go
17
18
+FROM alpine:latest as security_provider
19
+
20
+RUN addgroup -S gitlab-sync \
21
+ && adduser -S gitlab-sync -G gitlab-sync
22
23
FROM scratch
24
25
+COPY --from=security_provider /etc/passwd /etc/passwd
26
27
+USER gitlab-sync
28
29
COPY --from=build /app/bin/gitlab-sync /usr/local/bin/gitlab-sync
30
31
ENTRYPOINT [ "/usr/local/bin/gitlab-sync" ]
0 commit comments