diff --git a/Dockerfile b/Dockerfile index 3f2d1d56a2..d4a341b102 100644 --- a/Dockerfile +++ b/Dockerfile @@ -102,6 +102,7 @@ ENTRYPOINT ["/bin/sh", "./init.sh"] FROM inventree_base as frontend RUN apk add --no-cache --update nodejs npm && npm install -g yarn +RUN yarn config set network-timeout 600000 -g COPY InvenTree ${INVENTREE_HOME}/InvenTree COPY src ${INVENTREE_HOME}/src COPY tasks.py ${INVENTREE_HOME}/tasks.py @@ -131,7 +132,9 @@ CMD gunicorn -c ./gunicorn.conf.py InvenTree.wsgi -b 0.0.0.0:8000 --chdir ./Inve FROM inventree_base as dev # Install nodejs / npm / yarn + RUN apk add --no-cache --update nodejs npm && npm install -g yarn +RUN yarn config set network-timeout 600000 -g # The development image requires the source code to be mounted to /home/inventree/ # So from here, we don't actually "do" anything, apart from some file management