add specific version tag for the docker base image

This commit is contained in:
Aaron Riedel 2022-04-21 06:58:20 +00:00
parent 9ee858be01
commit 9421f0ab92

View file

@ -1,15 +1,15 @@
FROM python:alpine
WORKDIR ./
ARG PUID=1000
ENV GROUP dockergroup
ENV USER docker
ENV HOMEDIR "/home/${USER}"
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
USER ${USER}
WORKDIR ${HOMEDIR}
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
CMD [ "python", "./bot.py" ]
FROM python:3.9.12-alpine3.15
WORKDIR ./
ARG PUID=1000
ENV GROUP dockergroup
ENV USER docker
ENV HOMEDIR "/home/${USER}"
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
USER ${USER}
WORKDIR ${HOMEDIR}
COPY . .
RUN pip install --no-cache-dir -r requirements.txt
CMD [ "python", "./bot.py" ]