Skip to content

Commit

Permalink
Merge pull request #8 from leosussan/leo/build-order
Browse files Browse the repository at this point in the history
Dockerfile Build Order
  • Loading branch information
leosussan authored Nov 1, 2019
2 parents f5fb694 + 20ede87 commit 4754aa9
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 4754aa9

Please sign in to comment.