Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
@@ -19,13 +19,15 @@ RUN pip install pydantic[email]
|
|
19 |
# Make all files and folders readable, writable, executable
|
20 |
RUN chmod -R 777 ./
|
21 |
|
|
|
|
|
22 |
# RUN echo ~/
|
23 |
|
24 |
# List all directories including hidden ones
|
25 |
# RUN ls -al
|
26 |
|
27 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
28 |
-
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
29 |
# CMD ["gunicorn", "-b", "0.0.0.0:7860","main:app","--workers","1","-k","uvicorn.workers.UvicornWorker"]
|
30 |
|
31 |
# RUN echo "$TRANSFORMERS_CACHE"
|
|
|
19 |
# Make all files and folders readable, writable, executable
|
20 |
RUN chmod -R 777 ./
|
21 |
|
22 |
+
RUN python3 run.py
|
23 |
+
|
24 |
# RUN echo ~/
|
25 |
|
26 |
# List all directories including hidden ones
|
27 |
# RUN ls -al
|
28 |
|
29 |
# Start the FastAPI app on port 7860, the default port expected by Spaces
|
30 |
+
# CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
31 |
# CMD ["gunicorn", "-b", "0.0.0.0:7860","main:app","--workers","1","-k","uvicorn.workers.UvicornWorker"]
|
32 |
|
33 |
# RUN echo "$TRANSFORMERS_CACHE"
|