shbot/Dockerfile

15 lines
312 B
Text
Raw Normal View History

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
2022-03-14 17:26:59 +01:00
ENV GROUP dockergroup
2022-03-06 09:58:45 +01:00
ENV USER docker
ENV HOMEDIR "/home/${USER}"
2021-12-08 18:35:28 +01:00
2022-03-14 17:26:59 +01:00
RUN addgroup -S "${GROUP}" && adduser -S "${USER}" -G "${GROUP}"
2022-03-06 09:58:45 +01:00
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" ]