14 lines
500 B
Text
14 lines
500 B
Text
FROM scratch
|
|
ARG SYS
|
|
ADD $SYS /
|
|
ARG ALPINE_MIRROR
|
|
ARG ALPINE_MAJOR
|
|
RUN echo "$ALPINE_MIRROR/v$ALPINE_MAJOR/main" > /etc/apk/repositories
|
|
RUN echo "$ALPINE_MIRROR/v$ALPINE_MAJOR/community" >> /etc/apk/repositories
|
|
RUN apk upgrade -U
|
|
RUN apk add shadow
|
|
RUN \
|
|
useradd --user-group --system --no-create-home --uid 500 servnest && \
|
|
useradd --user-group --system --no-create-home --uid 501 nginx && \
|
|
useradd --user-group --system --no-create-home --uid 505 sftpgo
|
|
RUN echo "umask 077" >> /etc/profile
|