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" ]