Skip to content

Commit

Permalink
fix: build order
Browse files Browse the repository at this point in the history
(rationale: apk update / apk add should happen before pipfile)
  • Loading branch information
leosussan committed Oct 29, 2019
1 parent 6a8fd1a commit 20ede87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.worker
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 20ede87

Please sign in to comment.