Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Alina Lozovskaya
commited on
Commit
•
2d5c4a5
1
Parent(s):
ba8b444
Correct chmod
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -55,10 +55,10 @@ ENV HF_HOME=/app/.cache \
|
|
55 |
NODE_ENV=production
|
56 |
|
57 |
# Note: HF_TOKEN should be provided at runtime, not build time
|
|
|
|
|
58 |
USER user
|
59 |
EXPOSE 7860
|
60 |
|
61 |
-
RUN chmod -R 775 /app/
|
62 |
-
|
63 |
# Start both servers with wait-for
|
64 |
CMD ["sh", "-c", "uv run uvicorn app.asgi:app --host 0.0.0.0 --port 7861 & while ! nc -z localhost 7861; do sleep 1; done && cd frontend && npm run serve"]
|
|
|
55 |
NODE_ENV=production
|
56 |
|
57 |
# Note: HF_TOKEN should be provided at runtime, not build time
|
58 |
+
RUN chown -R user:user /app
|
59 |
+
RUN chmod -R 775 /app/
|
60 |
USER user
|
61 |
EXPOSE 7860
|
62 |
|
|
|
|
|
63 |
# Start both servers with wait-for
|
64 |
CMD ["sh", "-c", "uv run uvicorn app.asgi:app --host 0.0.0.0 --port 7861 & while ! nc -z localhost 7861; do sleep 1; done && cd frontend && npm run serve"]
|