touch files first
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user