ruslanmv commited on
Commit
b2dbbbf
·
1 Parent(s): 3b6777c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -9
Dockerfile CHANGED
@@ -1,17 +1,18 @@
1
- # Use an official Python base image
2
- FROM python:3.9
3
 
4
- # Set working directory
5
  WORKDIR /app
6
 
7
- # Copy application files
8
- COPY . /app
 
9
 
10
- # Install dependencies
11
- RUN pip install --no-cache-dir flask gunicorn pandas
12
 
13
- # Expose default Hugging Face Spaces port
14
  EXPOSE 7860
15
 
16
- # Launch the app with Gunicorn
17
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
 
1
+ # 1. Base image
2
+ FROM python:3.9-slim
3
 
4
+ # 2. Set workdir
5
  WORKDIR /app
6
 
7
+ # 3. Install dependencies from requirements.txt
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
 
11
+ # 4. Copy application code + CSV data
12
+ COPY app.py equiparazioni.csv ./
13
 
14
+ # 5. Expose HF Spaces port
15
  EXPOSE 7860
16
 
17
+ # 6. Start the app
18
  CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]