add specific version tag for the docker base image
This commit is contained in:
parent
9ee858be01
commit
9421f0ab92
1 changed files with 15 additions and 15 deletions
30
Dockerfile
30
Dockerfile
|
@ -1,15 +1,15 @@
|
||||||
FROM python:alpine
|
FROM python:3.9.12-alpine3.15
|
||||||
|
|
||||||
WORKDIR ./
|
WORKDIR ./
|
||||||
ARG PUID=1000
|
ARG PUID=1000
|
||||||
ENV GROUP dockergroup
|
ENV GROUP dockergroup
|
||||||
ENV USER docker
|
ENV USER docker
|
||||||
ENV HOMEDIR "/home/${USER}"
|
ENV HOMEDIR "/home/${USER}"
|
||||||
|
|
||||||
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
|
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
|
||||||
USER ${USER}
|
USER ${USER}
|
||||||
WORKDIR ${HOMEDIR}
|
WORKDIR ${HOMEDIR}
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
|
||||||
CMD [ "python", "./bot.py" ]
|
CMD [ "python", "./bot.py" ]
|
||||||
|
|
Loading…
Reference in a new issue