hemppa/Dockerfile

20 lines
389 B
Docker
Raw Normal View History

FROM python:3.8-slim
2019-12-09 19:54:57 +02:00
WORKDIR /bot
RUN apt update
RUN apt -y install libcups2-dev python3-dev gcc
2020-02-05 00:18:58 +02:00
2019-12-09 19:54:57 +02:00
COPY Pipfile .
2020-02-05 00:18:58 +02:00
RUN pip install pipenv && \
pip install pipfile-requirements
RUN pipfile2req Pipfile > requirements.txt
RUN pip install -r requirements.txt
2019-12-09 19:54:57 +02:00
2019-12-30 22:34:16 +02:00
COPY bot.py *.json *.pickle /bot/
COPY config config
COPY modules modules
VOLUME /bot/config
2020-02-05 00:18:58 +02:00
CMD [ "python", "-u", "./bot.py" ]