Trying to speed up Docker builds
This commit is contained in:
parent
a4a367cb22
commit
bee7165ff1
|
@ -1,15 +1,9 @@
|
||||||
FROM python:3.7-slim
|
FROM sartography/cr-connect-python-base
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY Pipfile Pipfile.lock /app/
|
COPY Pipfile Pipfile.lock /app/
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& pip install pipenv \
|
|
||||||
&& apt-get update -q \
|
|
||||||
&& apt-get install -y -q \
|
|
||||||
gcc python3-dev libssl-dev \
|
|
||||||
curl postgresql-client git-core \
|
|
||||||
gunicorn3 postgresql-client \
|
|
||||||
&& pipenv install --dev \
|
&& pipenv install --dev \
|
||||||
&& apt-get remove -y gcc python3-dev libssl-dev \
|
&& apt-get remove -y gcc python3-dev libssl-dev \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get autoremove -y \
|
||||||
|
|
Loading…
Reference in New Issue