Initial commit

This commit is contained in:
Pedro Rey Anca 2024-12-02 18:19:54 +01:00
commit 8f112c1bb5
Signed by: peprolinbot
GPG key ID: 053EA6E00116533A
69 changed files with 2068 additions and 0 deletions

22
web/Dockerfile Normal file
View file

@ -0,0 +1,22 @@
FROM python:3.11-alpine
RUN apk update && \
apk add --no-cache nginx supervisor
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
COPY requirements.txt /
RUN pip3 install --no-cache-dir -r /requirements.txt
RUN rm /requirements.txt
COPY . /app
WORKDIR /app
RUN python manage.py collectstatic
COPY nginx.conf /etc/nginx/http.d/default.conf
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
ENV DJANGO_DEBUG=false
EXPOSE 80 8080
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]