tombola-bde-2020/Dockerfile
Yohann D'ANELLO c585644dd6
Install Pillow to manage images
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2022-03-09 19:01:31 +01:00

22 lines
514 B
Docker

FROM python:3.9-slim-bullseye
ENV PYTHONUNBUFFERED 1
RUN mkdir /code
WORKDIR /code
RUN apt update && \
apt install -y gettext nginx uwsgi uwsgi-plugin-python3 && \
apt install -y python3-django python3-django-crispy-forms \
python3-django-extensions python3-django-tables2 python3-docutils \
python3-pil python3-psycopg2 && \
rm -rf /var/lib/apt/lists/*
COPY requirements.txt /code/
RUN pip install -r requirements.txt
COPY . /code/
ENTRYPOINT ["/code/entrypoint.sh"]
EXPOSE 8000