rishi1985 commited on
Commit
1701aea
·
1 Parent(s): 1cce17b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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.12
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","2"]
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"]