1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-03-09 23:38:54 +00:00

Update Dockerfile to fix permissions

This commit is contained in:
Mumshad Mannambeth 2017-06-07 15:15:03 -04:00
parent a00dfba6cb
commit f4dabb4dc6

View file

@ -38,9 +38,7 @@ RUN npm install -g yo gulp-cli generator-angular-fullstack
USER app_user
RUN mkdir -p /data/web-app
COPY ./package.json /data/web-app
RUN npm install
# Assign permissions to app_user
USER root
@ -49,6 +47,8 @@ RUN chown -R app_user /data/web-app
# Change user to app_user
USER app_user
RUN npm install
# Copy all application files
WORKDIR /data/web-app
COPY ./ /data/web-app