Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -17,7 +17,9 @@ ENV HOME=/home/user \
|
|
17 |
WORKDIR $HOME/app
|
18 |
|
19 |
COPY --chown=user . $HOME/app
|
20 |
-
|
|
|
|
|
21 |
COPY . .
|
22 |
|
23 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
17 |
WORKDIR $HOME/app
|
18 |
|
19 |
COPY --chown=user . $HOME/app
|
20 |
+
RUN chown -R user:user models
|
21 |
+
RUN chmod +w models
|
22 |
+
RUN chmod 777 /models
|
23 |
COPY . .
|
24 |
|
25 |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|