This commit is contained in:
2023-01-01 19:51:38 +01:00
commit dca8c8b4f0
39 changed files with 697 additions and 0 deletions

28
Dockerfile Normal file
View File

@ -0,0 +1,28 @@
FROM python:latest
LABEL Maintainer="Wolfgang Hottgenroth wolfgang.hottgenroth@icloud.com"
ARG APP_DIR="/opt/app"
RUN \
mkdir -p ${APP_DIR} && \
useradd -d ${APP_DIR} -u 1000 user
COPY django_project/ ${APP_DIR}
COPY requirements.txt ${APP_DIR}
WORKDIR ${APP_DIR}
RUN \
pip3 install -r ./requirements.txt
USER 1000:1000
EXPOSE 5000
EXPOSE 9191
CMD [ "uwsgi", "./wsgi.ini" ]