touch files first

This commit is contained in:
2021-07-07 13:05:30 +02:00
parent 284eb77bfe
commit 7b539fc81f

View File

@ -26,7 +26,9 @@ RUN \
RUN \
mkdir -p ${APP_DIR} && \
mkdir -p ${CONF_DIR} && \
useradd -d ${APP_DIR} -u 1000 user
useradd -d ${APP_DIR} -u 1000 user && \
touch methods.py && chown user methods.py && \
touch openapi.yaml && chown user openapi.yaml
COPY *.py ${APP_DIR}/
COPY openapi.yaml.tmpl ${APP_DIR}/
@ -40,7 +42,7 @@ VOLUME ${CONF_DIR}
RUN \
python3 generate.py
EXPOSE 5000
EXPOSE 9191