CJHauser commited on
Commit
2f1673e
·
verified ·
1 Parent(s): c86119f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -2,17 +2,13 @@ FROM python:3.11-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install dependencies first (layer cache)
6
  COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Copy application code
10
- COPY main.py .
11
 
12
- # Create persistent data directory
13
- RUN mkdir -p /app/data
14
 
15
- # Hugging Face Spaces requires port 7860
16
  EXPOSE 7860
17
 
18
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  COPY requirements.txt .
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY app.py .
 
9
 
10
+ ENV PORT=7860
 
11
 
 
12
  EXPOSE 7860
13
 
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]