Hamza4100 commited on
Commit
ba0a62d
·
verified ·
1 Parent(s): 0efd294

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +30 -28
Dockerfile CHANGED
@@ -1,28 +1,30 @@
1
- FROM python:3.10-slim
2
-
3
- WORKDIR /app
4
-
5
- # Install system dependencies
6
- RUN apt-get update && apt-get install -y --no-install-recommends \
7
- build-essential \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- # Install Python dependencies
11
- COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
13
-
14
- # Copy application files
15
- COPY app.py .
16
- COPY golden_table_clustered.csv .
17
-
18
- # Create data directory
19
- RUN mkdir -p /app/data
20
-
21
- # Expose port (HF Spaces uses 7860)
22
- EXPOSE 7860
23
-
24
- # Set environment variables
25
- ENV PYTHONUNBUFFERED=1
26
-
27
- # Run the application
28
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y --no-install-recommends \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Install Python dependencies
11
+ COPY requirements.txt .
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Copy application files
15
+ COPY app.py .
16
+ COPY merged_subscriber_data.csv .
17
+ COPY international_calls.csv .
18
+ COPY golden_table_clustered.csv .
19
+
20
+ # Create data directory
21
+ RUN mkdir -p /app/data
22
+
23
+ # Expose port (HF Spaces uses 7860)
24
+ EXPOSE 7860
25
+
26
+ # Set environment variables
27
+ ENV PYTHONUNBUFFERED=1
28
+
29
+ # Run the application
30
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]