niol08 commited on
Commit
6c8567d
·
verified ·
1 Parent(s): bf072f1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -7
Dockerfile CHANGED
@@ -1,20 +1,13 @@
1
- # Use an official lightweight Python image
2
  FROM python:3.10-slim
3
 
4
- # Set working directory
5
  WORKDIR /code
6
 
7
- # Copy dependency files
8
  COPY requirements.txt /code/
9
 
10
- # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
- # Copy all app files
14
  COPY . /code/
15
 
16
- # Expose port 7860 (required by Hugging Face)
17
  EXPOSE 7860
18
 
19
- # Start FastAPI using uvicorn
20
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.10-slim
2
 
 
3
  WORKDIR /code
4
 
 
5
  COPY requirements.txt /code/
6
 
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
 
9
  COPY . /code/
10
 
 
11
  EXPOSE 7860
12
 
 
13
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]