diff --git a/environments/production/Dockerfile b/environments/production/Dockerfile index 5377e76f4b893260f6de32fb750cd49c9caab20b..d59403fbbb9e30ccc38c9cc7bde834c72ff80a3d 100644 --- a/environments/production/Dockerfile +++ b/environments/production/Dockerfile @@ -2,7 +2,8 @@ FROM terion/static-web-build-runtime ADD ./ /usr/share/nginx/ WORKDIR /usr/share/nginx/ RUN chown -R u_web . +RUN su u_web && whoami RUN su u_web && bundle install RUN su u_web && npm install -RUN su u_web && ./node_modules/bower/bin/bower install +RUN su u_web && ./node_modules/bower/bin/bower install --allow-root RUN su u_web && node ./node_modules/bower/bin/gulp.js --production