2021-02-11 17:44:34 +00:00
|
|
|
FROM python:3.8
|
|
|
|
|
|
|
|
RUN pip install pipenv
|
|
|
|
RUN useradd _gunicorn --no-create-home --user-group
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y -q \
|
|
|
|
gcc libssl-dev \
|
|
|
|
curl postgresql-client git-core \
|
|
|
|
gunicorn3 postgresql-client
|
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/
|
2021-02-11 17:44:34 +00:00
|
|
|
RUN cd /app && pipenv lock --keep-outdated --requirements > requirements.txt
|
|
|
|
RUN pip install -r /app/requirements.txt
|
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
|
|
|
&& apt-get remove -y gcc python3-dev libssl-dev \
|
|
|
|
&& apt-get autoremove -y \
|
|
|
|
&& apt-get clean -y \
|
2021-02-11 17:44:34 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2020-05-25 00:53:25 +00:00
|
|
|
|
|
|
|
COPY . /app/
|
2020-05-24 16:37:11 +00:00
|
|
|
WORKDIR /app
|