libertywiki/Dockerfile

14 lines
350 B
Docker

FROM python:3
RUN useradd --system --gid root --uid 1001 uwsgi
RUN pip install uwsgi psycopg2_binary
RUN mkdir -p /app
COPY . /app
WORKDIR /app
RUN pip install .
EXPOSE 3031
CMD ["uwsgi", "--master", "--workers", "4", "--socket", "0.0.0.0:3031", "--protocol", "uwsgi", \
"--plugin", "python3", "--uid", "uwsgi", "--wsgi", "libertywiki.wsgi"]