From b59bf50573dbb3e66d6c9a3c9d563420e6689f7e Mon Sep 17 00:00:00 2001 From: KingCSharp Date: Mon, 9 Nov 2020 14:27:35 +0545 Subject: [PATCH] Update Dockerfile to have fast regular build. (#404) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1b89759..3cadd58 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM python:3.6 WORKDIR /app # Intall dependencies -COPY . /app/ +COPY requirements.txt /app/ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ apt update && \ @@ -14,6 +14,8 @@ RUN curl -sL https://deb.nodesource.com/setup_10.x | bash - && \ pip install --no-cache-dir -r requirements.txt && \ pip install --no-cache-dir redis +COPY . /app/ + RUN chmod +x /app/entrypoint.sh \ /app/wait-for-postgres.sh ENTRYPOINT ["/app/entrypoint.sh"] \ No newline at end of file