hamza82 commited on
Commit
238c8d6
·
verified ·
1 Parent(s): 7ffe1ac

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -39,10 +39,11 @@ RUN npm run build && cp -r dist/. /usr/share/nginx/html
39
 
40
 
41
  # Switch back to the app directory and setup the backend
42
- USER root
43
  WORKDIR $HOME/app
44
 
45
  COPY --chown=pn backend backend
 
46
  COPY --chown=pn default.conf /etc/nginx/conf.d/default.conf
47
 
48
  # Prepare the entrypoint script
 
39
 
40
 
41
  # Switch back to the app directory and setup the backend
42
+ USER pn
43
  WORKDIR $HOME/app
44
 
45
  COPY --chown=pn backend backend
46
+ USER pn
47
  COPY --chown=pn default.conf /etc/nginx/conf.d/default.conf
48
 
49
  # Prepare the entrypoint script