shbot/Dockerfile

14 lines
260 B
Text
Raw Permalink Normal View History

2021-12-08 18:35:28 +01:00
FROM python:slim
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" ]