servnest-containers/alpine.Containerfile

15 lines
500 B
Text
Raw Permalink Normal View History

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 && \
2024-08-08 00:03:43 +02:00
useradd --user-group --system --no-create-home --uid 505 sftpgo
2025-01-22 21:45:24 +01:00
RUN echo "umask 077" >> /etc/profile