From 9421f0ab924f5581cc282e15135a6e473676bf2f Mon Sep 17 00:00:00 2001 From: Aaron Riedel Date: Thu, 21 Apr 2022 06:58:20 +0000 Subject: [PATCH] add specific version tag for the docker base image --- Dockerfile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c69a93..9fe3942 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ] \ No newline at end of file +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" ]