diff --git a/Dockerfile b/Dockerfile index 9bd7843..6d4b846 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,8 @@ RUN . ../ENV/bin/activate \ RUN mkdir -p ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/uploadedfiles && chgrp -R arches ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/uploadedfiles && chmod -R g+rw ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/uploadedfiles COPY docker/settings_docker.py ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/settings_local.py -RUN echo "{}" > ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/webpack-stats.json +# RUN echo "{}" > ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT}/webpack-stats.json +RUN echo "{}" > ${WEB_ROOT}/${ARCHES_PROJECT}/webpack/webpack-stats.json WORKDIR ${WEB_ROOT}/${ARCHES_PROJECT}/${ARCHES_PROJECT} RUN mkdir -p /static_root && chown -R arches /static_root diff --git a/docker-compose.yml b/docker-compose.yml index c0c185c..1ea6883 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,6 +9,7 @@ services: arches: restart: unless-stopped + user: root # frontend configuration entrypoint: ["../entrypoint.sh"] build: context: ${ARCHES_PROJECT_ROOT}. diff --git a/entrypoint.sh b/entrypoint.sh index ac51c09..6ad17ac 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -264,7 +264,7 @@ run_npm_build_production() { cd_app_folder sleep 10 cd ${ARCHES_PROJECT} - npm build_production + npm run build_production } run_npm_build_development() { @@ -275,7 +275,7 @@ run_npm_build_development() { cd_app_folder sleep 10 cd ${ARCHES_PROJECT} - npm build_development + npm run build_development }