triflix commited on
Commit
ee1e299
·
verified ·
1 Parent(s): 38a6ec8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -7
Dockerfile CHANGED
@@ -1,18 +1,12 @@
1
- # Use an official Python runtime as a base image
2
- FROM python:3.9-slim
3
 
4
- # Set the working directory
5
  WORKDIR /app
6
 
7
- # Copy project files into the container
8
  COPY . .
9
 
10
- # Install required packages
11
  RUN pip install --upgrade pip && \
12
  pip install fastapi uvicorn[standard] jinja2 requests python-multipart
13
 
14
- # Expose port 7860 (the default for HuggingFace Spaces)
15
  EXPOSE 7860
16
 
17
- # Run the FastAPI app on port 7860
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
1
 
2
+ FROM python:3.9-slim
3
  WORKDIR /app
4
 
 
5
  COPY . .
6
 
 
7
  RUN pip install --upgrade pip && \
8
  pip install fastapi uvicorn[standard] jinja2 requests python-multipart
9
 
 
10
  EXPOSE 7860
11
 
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]