proti0070 commited on
Commit
dad6fc8
·
verified ·
1 Parent(s): 5efe056

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -1,13 +1,12 @@
1
- # Hugging Face Space এর জন্য Dockerfile
2
  FROM python:3.10-slim
3
 
4
  WORKDIR /app
5
 
6
  # সিস্টেম ডিপেন্ডেন্সি
7
  RUN apt-get update && apt-get install -y \
8
- build-essential \
 
9
  curl \
10
- git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # Python প্যাকেজ
@@ -16,18 +15,19 @@ RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # অ্যাপ কপি
18
  COPY app.py .
19
- COPY packages.txt .
20
 
21
- # Hugging Face ক্যাশের জন্য ভলিউম
22
- VOLUME /root/.cache/huggingface
23
-
24
- # পোর্ট
25
  ENV PORT=7860
 
 
26
  EXPOSE $PORT
27
 
 
 
 
28
  # হেলথচেক
29
- HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
30
  CMD curl -f http://localhost:$PORT/health || exit 1
31
 
32
- # রান কমান্ড
33
  CMD uvicorn app:app --host 0.0.0.0 --port $PORT
 
 
1
  FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
  # সিস্টেম ডিপেন্ডেন্সি
6
  RUN apt-get update && apt-get install -y \
7
+ gcc \
8
+ g++ \
9
  curl \
 
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Python প্যাকেজ
 
15
 
16
  # অ্যাপ কপি
17
  COPY app.py .
 
18
 
19
+ # Environment
20
+ ENV MODEL_NAME=Qwen/Qwen3-0.6B
 
 
21
  ENV PORT=7860
22
+ ENV PYTHONUNBUFFERED=1
23
+
24
  EXPOSE $PORT
25
 
26
+ # Hugging Face ক্যাশের জন্য ভলিউম
27
+ VOLUME ["/root/.cache/huggingface"]
28
+
29
  # হেলথচেক
30
+ HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \
31
  CMD curl -f http://localhost:$PORT/health || exit 1
32
 
 
33
  CMD uvicorn app:app --host 0.0.0.0 --port $PORT