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
|
||||
|
||||
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" ]
|
||||
|
|
Loading…
Reference in a new issue