mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-09-29 20:51:10 +02:00
#37 Improve backup PVC docker image user creation
This commit is contained in:
+11
-3
@@ -1,8 +1,16 @@
|
||||
FROM alpine:3.9
|
||||
|
||||
RUN set -x && \
|
||||
addgroup -S user -g 1000 && \
|
||||
adduser -S user -G user && \
|
||||
ENV USER=user
|
||||
ENV UID=1000
|
||||
ENV GID=1000
|
||||
|
||||
RUN addgroup --gid "$GID" "$USER" && \
|
||||
adduser \
|
||||
--disabled-password \
|
||||
--gecos "" \
|
||||
--ingroup "$USER" \
|
||||
--uid "$UID" \
|
||||
"$USER" && \
|
||||
apk add --no-cache bash
|
||||
WORKDIR /home/user/bin
|
||||
COPY bin .
|
||||
|
||||
@@ -1 +1 @@
|
||||
v0.0.2
|
||||
v0.0.3
|
||||
|
||||
Reference in New Issue
Block a user