kouki321 commited on
Commit
d78207d
·
verified ·
1 Parent(s): e1982be

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -1,16 +1,12 @@
1
- # Use the official Hugging Face Spaces Python base image
2
- FROM huggingface/spaces-python:latest
3
 
4
- # Install only your extra dependencies
5
  COPY requirements.txt /app/requirements.txt
6
  RUN pip install --no-cache-dir -r /app/requirements.txt
7
 
8
- # Copy your app code
9
  COPY app.py /app/app.py
10
 
 
 
11
  EXPOSE 7860
12
 
13
- # Run the FastAPI app with uvicorn
14
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
15
-
16
-
 
1
+ FROM python:3.10-slim
 
2
 
 
3
  COPY requirements.txt /app/requirements.txt
4
  RUN pip install --no-cache-dir -r /app/requirements.txt
5
 
 
6
  COPY app.py /app/app.py
7
 
8
+ WORKDIR /app
9
+
10
  EXPOSE 7860
11
 
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]