Copy with wildcard to ignore missing files - fixes #3

This commit is contained in:
Ville Ranki 2019-12-29 17:17:52 +02:00
parent 99089683af
commit b2059e78a7
1 changed files with 3 additions and 6 deletions

View File

@ -8,11 +8,8 @@ RUN pipenv install --pre
COPY bot.py .
COPY modules modules
# Make sure these exist
RUN touch credentials.json
RUN touch token.pickle
COPY credentials.json .
COPY token.pickle .
# googlecal: copy credentials.json and token.pickle if they exist
COPY *.json .
COPY *.pickle .
CMD [ "pipenv", "run", "python", "-u", "./bot.py" ]