fix adduser command

This commit is contained in:
Aaron Riedel 2022-03-14 17:26:59 +01:00
parent 542c1a9261
commit 8db08e8e16
Signed by: aaron
GPG key ID: 643004654D40D577

View file

@ -2,10 +2,11 @@ FROM python:alpine
WORKDIR ./
ARG PUID=1000
ENV GROUP dockergroup
ENV USER docker
ENV HOMEDIR "/home/${USER}"
RUN useradd -u "${PUID}" -m "${USER}"
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
USER ${USER}
WORKDIR ${HOMEDIR}
COPY . .