2020-06-12 20:53:35 +00:00
|
|
|
FROM sartography/cr-connect-python-base
|
2019-11-22 14:28:07 +00:00
|
|
|
|
2020-05-20 18:33:39 +00:00
|
|
|
WORKDIR /app
|
2020-05-25 00:53:25 +00:00
|
|
|
COPY Pipfile Pipfile.lock /app/
|
2019-12-31 17:13:20 +00:00
|
|
|
|
2020-05-24 16:37:11 +00:00
|
|
|
RUN set -xe \
|
2020-05-25 00:53:25 +00:00
|
|
|
&& pipenv install --dev \
|
|
|
|
&& apt-get remove -y gcc python3-dev libssl-dev \
|
|
|
|
&& apt-get autoremove -y \
|
|
|
|
&& apt-get clean -y \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& mkdir -p /app \
|
|
|
|
&& useradd _gunicorn --no-create-home --user-group
|
|
|
|
|
|
|
|
COPY . /app/
|
2020-05-24 16:37:11 +00:00
|
|
|
WORKDIR /app
|