no more apache2

This commit is contained in:
Arthur 2025-02-25 18:24:29 +01:00
commit d8bd75003b
79 changed files with 52 additions and 27 deletions

21
sciodog-app/Dockerfile Normal file
View file

@ -0,0 +1,21 @@
# WSGI_FILE : file used as the app to run, passed to uwsgi --module option
# PORT : Port on which the app is exposed
# APP_DIR : Path of the app on the host machine. It will be mounted on /var/www/html in the container
FROM alpine:latest
# UWSGI Configuration
COPY configuration/ /etc/uwsgi/
RUN mkdir -p /etc/uwsgi ; \
adduser uwsgi -S -D -H -s /usr/sbin/nologin ; \
apk add python3 python3-dev py3-pip gcc musl-dev linux-headers ; \
pip install --break-system-packages uwsgi django
# Application configuration
WORKDIR /var/www/html
COPY ./app/ .
RUN pip install --break-system-packages -r requirements.txt
EXPOSE ${PORT}
ENTRYPOINT ["uwsgi", "--ini", "/etc/uwsgi/uwsgi.ini"]