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:
parent
a00dfba6cb
commit
f4dabb4dc6
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue