generated

This commit is contained in:
2021-07-07 13:02:16 +02:00
parent b6c33534f1
commit 284eb77bfe
11 changed files with 790 additions and 227 deletions

View File

@ -18,7 +18,8 @@ RUN \
pip3 install uwsgi && \
pip3 install flask-cors && \
pip3 install python-jose[cryptography] && \
pip3 install loguru
pip3 install loguru && \
pip3 install Cheetah3
@ -28,13 +29,19 @@ RUN \
useradd -d ${APP_DIR} -u 1000 user
COPY *.py ${APP_DIR}/
COPY openapi.yaml ${APP_DIR}/
COPY openapi.yaml.tmpl ${APP_DIR}/
COPY methods.py.tmpl ${APP_DIR}/
COPY schema.json ${APP_DIR}/
COPY server.ini ${CONF_DIR}/
USER 1000:1000
WORKDIR ${APP_DIR}
VOLUME ${CONF_DIR}
RUN \
python3 generate.py
EXPOSE 5000
EXPOSE 9191