switch base image to python:alpine
This commit is contained in:
parent
90a1522c2a
commit
58306b1e72
1 changed files with 3 additions and 2 deletions
|
@ -1,11 +1,12 @@
|
||||||
FROM python:slim
|
FROM python:alpine
|
||||||
|
|
||||||
WORKDIR ./
|
WORKDIR ./
|
||||||
ARG PUID=1000
|
ARG PUID=1000
|
||||||
|
ENV GROUP dockergroup
|
||||||
ENV USER docker
|
ENV USER docker
|
||||||
ENV HOMEDIR "/home/${USER}"
|
ENV HOMEDIR "/home/${USER}"
|
||||||
|
|
||||||
RUN useradd -u "${PUID}" -m "${USER}"
|
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
|
||||||
USER ${USER}
|
USER ${USER}
|
||||||
WORKDIR ${HOMEDIR}
|
WORKDIR ${HOMEDIR}
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
Loading…
Reference in a new issue