2020-09-17 15:34:45 +00:00
|
|
|
FROM python:3.8-slim
|
2020-09-10 15:28:58 +00:00
|
|
|
|
2020-09-22 18:27:28 +00:00
|
|
|
RUN apt-get update -q \
|
|
|
|
&& apt-get install -y -q \
|
|
|
|
gcc \
|
|
|
|
libssl-dev \
|
|
|
|
curl \
|
|
|
|
postgresql-client \
|
|
|
|
gunicorn3
|
|
|
|
RUN useradd _gunicorn --no-create-home --user-group
|
|
|
|
|
|
|
|
COPY . /app/
|
2020-09-10 15:28:58 +00:00
|
|
|
WORKDIR /app
|
|
|
|
|
2020-09-22 18:27:28 +00:00
|
|
|
RUN chmod +x "/app/docker_run.sh" \
|
|
|
|
&& pip install pipenv \
|
|
|
|
&& pipenv install --dev --deploy --system --ignore-pipfile
|
2020-09-17 16:00:38 +00:00
|
|
|
|
2020-09-22 18:27:28 +00:00
|
|
|
ENTRYPOINT ["/app/docker_run.sh"]
|
2020-09-10 15:28:58 +00:00
|
|
|
|