kasownik/Dockerfile

17 lines
478 B
Docker

FROM python:3.9-slim
RUN apt-get update && apt-get install --no-install-recommends -y build-essential libsasl2-dev libldap2-dev
ADD web/requirements.txt .
# Downgrade setuptools to fix anyjson dependency
RUN pip install setuptools~=57.5.0 && \
pip install -r requirements.txt
WORKDIR /usr/src/web
ADD web /usr/src/web
ADD fetch /usr/src/fetch
STOPSIGNAL SIGINT
CMD ["uwsgi", "--http-socket", "0.0.0.0:5000", "--wsgi", "webapp.wsgi:app", "--threads", "10", "--master"]