mirror of
https://github.com/ysoftdevs/imagepullsecret-injector.git
synced 2026-05-06 07:53:21 +02:00
Make the deployment and the jobs run in a non-root environment
This commit is contained in:
@@ -7,4 +7,7 @@ RUN make build
|
||||
FROM alpine:3.13.4 as base
|
||||
COPY --from=builder /go/src/github.com/ysoftdevs/imagepullsecret-injector/build/_output/bin/imagepullsecret-injector /usr/local/bin/imagepullsecret-injector
|
||||
|
||||
ENTRYPOINT ["imagepullsecret-injector"]
|
||||
RUN addgroup -S imagepullsecret-injector-group && adduser -S imagepullsecret-injector-user -G imagepullsecret-injector-group
|
||||
USER imagepullsecret-injector-user
|
||||
|
||||
ENTRYPOINT ["imagepullsecret-injector"]
|
||||
|
||||
Reference in New Issue
Block a user