aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 9100783b0ea0d7a849db40547a990e4df11885e4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM python:3.7-alpine

RUN apk add python3-dev git libpq postgresql-dev gcc cmake autoconf automake musl-dev
RUN python3 -m pip install poetry

COPY . /app
WORKDIR /app

RUN python3 -m poetry config settings.virtualenvs.in-project true
RUN poetry install --no-dev
RUN apk del git gcc cmake autoconf automake

CMD ["gunicorn", "--workers", "4", "--bind", "0.0.0.0:4000", "pysite.wsgi:application"]