From 2766de71ebbfbd5aac750a0213d7a7771aa94bb0 Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 3 May 2020 20:53:07 +0200 Subject: [PATCH] optimize Dockerfile caching --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d4ca033..eee2c5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,9 @@ ENV HOMESERVER_URL=https://matrix.org \ ADMIN_ROOM=!jaeisofjaosiefjoi:matrix.org WORKDIR /app -COPY requirements.txt scrape.py ./ + +COPY requirements.txt ./ RUN pip install -r requirements.txt +COPY scrape.py ./ CMD [ "python", "scrape.py" ] \ No newline at end of file