suvradip2000 commited on
Commit
dfddc0c
·
verified ·
1 Parent(s): e75a080

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
- # Use an official Python runtime as a parent image
2
  FROM python:3.8-slim
3
 
4
  # Set the working directory in the container
@@ -15,10 +14,10 @@ RUN apt-get update && \
15
  pip install python-multipart
16
 
17
  # Make port 7860 available to the world outside this container
18
- EXPOSE 8000
19
 
20
  # Define environment variable for FastAPI
21
  ENV PYTHONUNBUFFERED 1
22
 
23
  # Command to run the application
24
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
 
 
1
  FROM python:3.8-slim
2
 
3
  # Set the working directory in the container
 
14
  pip install python-multipart
15
 
16
  # Make port 7860 available to the world outside this container
17
+ EXPOSE 7860
18
 
19
  # Define environment variable for FastAPI
20
  ENV PYTHONUNBUFFERED 1
21
 
22
  # Command to run the application
23
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]