Commit 1cb39bb8 authored by Terion's avatar Terion

.

parent 15c8f10a
FROM terion/static-web-build-runtime
## prepare
ADD ./ /usr/share/nginx/
WORKDIR /usr/share/nginx/
RUN chown -R u_web .
# both variants, 'RUN 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
# using USER u_web invokes sudo -u and triggers server to show lecture that breaks all process
## build
RUN su u_web && bundle install
RUN su u_web && npm install
RUN su u_web && ./node_modules/bower/bin/bower install --allow-root
......
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