order of statements

This commit is contained in:
Wolfgang Hottgenroth 2021-07-07 13:07:51 +02:00
parent 7b539fc81f
commit 9cabfdd484
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -26,9 +26,7 @@ RUN \
RUN \
mkdir -p ${APP_DIR} && \
mkdir -p ${CONF_DIR} && \
useradd -d ${APP_DIR} -u 1000 user && \
touch methods.py && chown user methods.py && \
touch openapi.yaml && chown user openapi.yaml
useradd -d ${APP_DIR} -u 1000 user
COPY *.py ${APP_DIR}/
COPY openapi.yaml.tmpl ${APP_DIR}/
@ -36,13 +34,13 @@ 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
USER 1000:1000
EXPOSE 5000
EXPOSE 9191