database configuration

This commit is contained in:
2021-01-15 17:19:18 +01:00
parent 4dad188a07
commit 8c1730389c
4 changed files with 24 additions and 9 deletions

View File

@ -3,6 +3,7 @@ FROM python:latest
LABEL Maintainer="Wolfgang Hottgenroth wolfgang.hottgenroth@icloud.com"
ARG APP_DIR="/opt/app"
ARG CONF_DIR="${APP_DIR}/config"
RUN \
apt update && \
@ -15,19 +16,21 @@ RUN \
RUN \
mkdir -p ${APP_DIR} && \
mkdir -p ${CONF_DIR} && \
useradd -d ${APP_DIR} -u 1000 user
COPY *.py ${APP_DIR}/
COPY swagger.yaml ${APP_DIR}/
COPY server.ini ${APP_DIR}/
COPY server.ini ${CONF_DIR}/
USER 1000:1000
WORKDIR ${APP_DIR}
VOLUME ${CONF_DIR}
EXPOSE 5000
EXPOSE 9191
CMD [ "uwsgi", "server.ini" ]
CMD [ "uwsgi", "./config/server.ini" ]