2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-05 19:41:41 +00:00

Fix location of entrypoint scripts

This commit is contained in:
Oliver Walters
2021-04-10 22:35:10 +10:00
parent 5d9e273559
commit 8f626d305e
4 changed files with 19 additions and 9 deletions

View File

@@ -82,14 +82,16 @@ RUN pip install --no-cache-dir -U -r ${INVENTREE_SRC_DIR}/requirements.txt
COPY gunicorn.conf.py ${INVENTREE_HOME}/gunicorn.conf.py
# Copy startup scripts
COPY start_server.sh ${INVENTREE_HOME}/start_server.sh
COPY start_worker.sh ${INVENTREE_HOME}/start_worker.sh
COPY start_server.sh ${INVENTREE_SRC_DIR}/start_server.sh
COPY start_worker.sh ${INVENTREE_SRC_DIR}/start_worker.sh
RUN chmod 755 ${INVENTREE_HOME}/start_server.sh
RUN chmod 755 ${INVENTREE_HOME}/start_worker.sh
RUN chmod 755 ${INVENTREE_SRC_DIR}/start_server.sh
RUN chmod 755 ${INVENTREE_SRC_DIR}/start_worker.sh
# exec commands should be executed from the "src" directory
WORKDIR ${INVENTREE_SRC_DIR}
USER inventree
# Let us begin
CMD ["bash", "../start_server.sh"]
CMD ["bash", "./start_server.sh"]