diff --git a/Dockerfile b/Dockerfile index 0fe06c5..8c69a93 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,12 @@ -FROM python:slim +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 . .