2022-03-14 17:20:39 +01:00
|
|
|
FROM python:alpine
|
2021-12-08 18:35:28 +01:00
|
|
|
|
|
|
|
WORKDIR ./
|
2022-03-06 09:58:45 +01:00
|
|
|
ARG PUID=1000
|
|
|
|
ENV USER docker
|
|
|
|
ENV HOMEDIR "/home/${USER}"
|
2021-12-08 18:35:28 +01:00
|
|
|
|
2022-03-06 09:58:45 +01:00
|
|
|
RUN useradd -u "${PUID}" -m "${USER}"
|
|
|
|
USER ${USER}
|
|
|
|
WORKDIR ${HOMEDIR}
|
2021-12-08 18:35:28 +01:00
|
|
|
COPY . .
|
2022-03-06 09:58:45 +01:00
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
2021-12-08 18:35:28 +01:00
|
|
|
|
|
|
|
CMD [ "python", "./bot.py" ]
|