Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -2,7 +2,6 @@ FROM python:3.10.13-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
  libglib2.0-0 \
8
  libsm6 \
@@ -10,18 +9,17 @@ RUN apt-get update && apt-get install -y \
10
  libxrender-dev \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Install Python dependencies
14
  COPY requirements.txt .
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
- # Copy all project files
18
  COPY app.py .
 
19
  COPY model_architecture.json .
20
  COPY best_weights.weights.h5 .
21
- COPY static/ ./static/
 
 
22
 
23
- # HuggingFace Spaces requires port 7860
24
  EXPOSE 7860
25
 
26
- # Run with gunicorn for production
27
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "1", "app:app"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  libglib2.0-0 \
7
  libsm6 \
 
9
  libxrender-dev \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
12
  COPY requirements.txt .
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
 
15
  COPY app.py .
16
+ COPY index.html .
17
  COPY model_architecture.json .
18
  COPY best_weights.weights.h5 .
19
+ COPY class_names.json .
20
+ COPY symptoms.json .
21
+ COPY medicines.json .
22
 
 
23
  EXPOSE 7860
24
 
 
25
  CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "120", "--workers", "1", "app:app"]