2019-12-09 19:54:57 +02:00
|
|
|
FROM python:3
|
|
|
|
|
|
|
|
WORKDIR /bot
|
|
|
|
RUN pip install pipenv
|
|
|
|
COPY Pipfile .
|
2019-12-23 18:34:58 +02:00
|
|
|
RUN pipenv install --pre
|
2019-12-09 19:54:57 +02:00
|
|
|
|
|
|
|
COPY bot.py .
|
2019-12-10 23:43:08 +02:00
|
|
|
COPY modules modules
|
|
|
|
|
2019-12-23 18:34:58 +02:00
|
|
|
# Make sure these exist
|
|
|
|
RUN touch credentials.json
|
|
|
|
RUN touch token.pickle
|
2019-12-10 23:43:08 +02:00
|
|
|
|
2019-12-23 18:34:58 +02:00
|
|
|
COPY credentials.json .
|
|
|
|
COPY token.pickle .
|
2019-12-09 19:54:57 +02:00
|
|
|
|
2019-12-23 18:34:58 +02:00
|
|
|
CMD [ "pipenv", "run", "python", "-u", "./bot.py" ]
|