Cistern commited on
Commit
dfdcf88
·
verified ·
1 Parent(s): 25a730a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -18
Dockerfile CHANGED
@@ -1,22 +1,11 @@
1
- FROM python:3.10-slim
2
 
3
- WORKDIR /app
4
 
5
- # Install system dependencies if needed (DuckDB requires libstdc++)
6
- RUN apt-get update && apt-get install -y --no-install-recommends \
7
- libstdc++6 \
8
- && rm -rf /var/lib/apt/lists/*
9
 
10
- # Copy and install Python dependencies
11
- COPY requirements.txt .
12
- RUN pip install --no-cache-dir -r requirements.txt
13
 
14
- # Copy the application
15
- COPY app.py .
16
-
17
- # Default port (Hugging Face Spaces typically expose 7860)
18
- ENV PORT=7860
19
-
20
- EXPOSE 7860
21
-
22
- CMD ["python", "app.py"]
 
1
+ FROM python:3.9
2
 
3
+ WORKDIR /code
4
 
5
+ COPY ./requirements.txt /code/requirements.txt
6
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
 
 
7
 
8
+ COPY . .
 
 
9
 
10
+ # Ye command background mein pinger chalayegi aur foreground mein app
11
+ CMD ["sh", "-c", "python pinger.py & uvicorn app:app --host 0.0.0.0 --port 7860"]