gregorkrzmanc commited on
Commit
5667bd5
·
1 Parent(s): 9e8df27
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -101,7 +101,10 @@ RUN cd $HOME/opt/pepr && git clone https://github.com/cms-pepr/pytorch_cmspepr
101
  RUN cd $HOME/opt/pepr/pytorch_cmspepr/ && python3 -m pip install .
102
 
103
  COPY --chown=user . $HOME/app
104
- RUN chmod 777 $HOME/*
 
 
 
105
 
106
  # entrypoint run app.py with python
107
  EXPOSE 7860
 
101
  RUN cd $HOME/opt/pepr/pytorch_cmspepr/ && python3 -m pip install .
102
 
103
  COPY --chown=user . $HOME/app
104
+
105
+ USER root
106
+ RUN chmod -R 777 $HOME
107
+ USER user
108
 
109
  # entrypoint run app.py with python
110
  EXPOSE 7860