haseebnawazz commited on
Commit
b4096b5
·
verified ·
1 Parent(s): f08c942

Update DockerFile

Browse files
Files changed (1) hide show
  1. DockerFile +3 -3
DockerFile CHANGED
@@ -4,15 +4,15 @@ FROM python:3.9
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
- # Copy necessary files
8
  COPY api.py /app
9
  COPY requirements.txt /app
10
 
11
  # Install dependencies
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # Expose port 7860 (Hugging Face default)
15
  EXPOSE 7860
16
 
17
- # Run the FastAPI application
18
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
 
4
  # Set the working directory inside the container
5
  WORKDIR /app
6
 
7
+ # Copy all necessary files
8
  COPY api.py /app
9
  COPY requirements.txt /app
10
 
11
  # Install dependencies
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ # Expose the default Hugging Face port
15
  EXPOSE 7860
16
 
17
+ # Start FastAPI using Uvicorn
18
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]