Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Use the official Python 3.9 image as the base image
|
2 |
-
FROM python:3.
|
3 |
|
4 |
# Expose the port
|
5 |
EXPOSE 7860
|
@@ -127,5 +127,5 @@ RUN pip install gunicorn
|
|
127 |
# Start the Uvicorn server
|
128 |
# ENTRYPOINT ["python", "main.py"]
|
129 |
# CMD ["sh", "-c", "python main.py & sleep infinity"]
|
130 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860","--workers","
|
131 |
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
1 |
# Use the official Python 3.9 image as the base image
|
2 |
+
FROM python:3.11
|
3 |
|
4 |
# Expose the port
|
5 |
EXPOSE 7860
|
|
|
127 |
# Start the Uvicorn server
|
128 |
# ENTRYPOINT ["python", "main.py"]
|
129 |
# CMD ["sh", "-c", "python main.py & sleep infinity"]
|
130 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860","--workers","1"]
|
131 |
# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|