From 20ede870ff85b15e83360ee0fd5cccf2b074d22f Mon Sep 17 00:00:00 2001 From: Leo Sussan Date: Tue, 29 Oct 2019 11:34:02 -0400 Subject: [PATCH] fix: build order (rationale: apk update / apk add should happen before pipfile) --- Dockerfile | 4 ++-- Dockerfile.worker | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 600b8f27b..aa89a0325 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ FROM tiangolo/uvicorn-gunicorn:python3.7-alpine3.8 +RUN apk update && apk add gcc libffi-dev g++ postgresql-dev make + RUN pip install pipenv COPY Pipfile Pipfile COPY Pipfile.lock Pipfile.lock -RUN apk update && apk add gcc libffi-dev g++ postgresql-dev make - RUN pipenv install --system --deploy --ignore-pipfile RUN apk del libffi-dev g++ make diff --git a/Dockerfile.worker b/Dockerfile.worker index 522c589b1..b460f50aa 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -1,12 +1,12 @@ FROM python:3.7-alpine +RUN apk update && apk add --no-cache gcc libffi-dev openssl-dev g++ postgresql-dev make + RUN pip install pipenv COPY Pipfile Pipfile COPY Pipfile.lock Pipfile.lock -RUN apk update && apk add --no-cache gcc libffi-dev openssl-dev g++ postgresql-dev make - RUN pipenv install --system --deploy --ignore-pipfile RUN apk del libffi-dev g++ make