Baybars commited on
Commit
5b29906
1 Parent(s): 6b0bcdf

ownership issues fix

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -41,6 +41,12 @@ COPY --chown=user requirements.txt $HOME/app/
41
  RUN pip install -r requirements.txt
42
 
43
  COPY --chown=user . $HOME/app/
 
 
 
 
 
 
44
  EXPOSE 7860
45
 
46
  CMD ["python3", "-u", "infer_onnx.py"]
 
41
  RUN pip install -r requirements.txt
42
 
43
  COPY --chown=user . $HOME/app/
44
+
45
+ # Fix ownership issues
46
+ USER root
47
+ RUN chown -R user:user $HOME/app
48
+ USER user
49
+
50
  EXPOSE 7860
51
 
52
  CMD ["python3", "-u", "infer_onnx.py"]