order of statements
This commit is contained in:
parent
7b539fc81f
commit
9cabfdd484
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user