fix adduser command
This commit is contained in:
parent
542c1a9261
commit
8db08e8e16
1 changed files with 2 additions and 1 deletions
|
@ -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 . .
|
||||
|
|
Loading…
Reference in a new issue