Commit 732096b7 authored by Terion's avatar Terion

.

parent 878d0ca4
......@@ -2,8 +2,17 @@ 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 --allow-root
RUN su u_web && node ./node_modules/bower/bin/gulp.js --production
# both variants, 'su u_web && cmd' and 'USER u_web \ RUN cmd' seem to work with sudo permissions
# this is annoying but no way to change
USER u_web
RUN bundle install
RUN npm install
RUN ./node_modules/bower/bin/bower install --allow-root
RUN node ./node_modules/bower/bin/gulp.js --production
#RUN su u_web && bundle install
#RUN su u_web && npm 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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment