From b2059e78a7ea9d221fd1b72dff85f41a0dfdd0b3 Mon Sep 17 00:00:00 2001 From: Ville Ranki Date: Sun, 29 Dec 2019 17:17:52 +0200 Subject: [PATCH] Copy with wildcard to ignore missing files - fixes #3 --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1127252..2f8403c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" ]