2022-05-06 13:54:27 +00:00
|
|
|
FROM ghcr.io/sartography/python:3.9
|
2021-02-11 17:44:34 +00:00
|
|
|
|
2022-05-05 23:46:21 +00:00
|
|
|
RUN pip install pipenv
|
2021-02-11 17:44:34 +00:00
|
|
|
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
|
2022-05-05 23:46:21 +00:00
|
|
|
COPY Pipfile Pipfile.lock /app/
|
2022-05-10 17:59:25 +00:00
|
|
|
RUN pipenv install
|
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
|