2020-11-23 00:19:43 +02:00
|
|
|
FROM python:3.8-slim
|
2019-12-09 19:54:57 +02:00
|
|
|
|
|
|
|
WORKDIR /bot
|
2020-11-23 00:19:43 +02:00
|
|
|
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 && \
|
2020-07-21 00:06:17 +03:00
|
|
|
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/
|
2020-02-09 12:39:15 +02:00
|
|
|
COPY config config
|
2019-12-10 23:43:08 +02:00
|
|
|
COPY modules modules
|
|
|
|
|
2020-02-09 12:39:15 +02:00
|
|
|
VOLUME /bot/config
|
|
|
|
|
2020-02-05 00:18:58 +02:00
|
|
|
CMD [ "python", "-u", "./bot.py" ]
|