ownership issues fix
Browse files- 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"]
|