Removes dependence on cr-connect-python-base for now

This commit is contained in:
Aaron Louie 2020-06-16 14:23:13 -04:00
parent 14d68f40df
commit db42a9128d
1 changed files with 7 additions and 2 deletions

View File

@ -1,15 +1,20 @@
FROM sartography/cr-connect-python-base
FROM python:3.7-slim
WORKDIR /app
COPY Pipfile Pipfile.lock /app/
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 \
&& 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/