no more apache2
This commit is contained in:
parent
ba112f7166
commit
d8bd75003b
79 changed files with 52 additions and 27 deletions
21
sciodog-app/Dockerfile
Normal file
21
sciodog-app/Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue