samiulttr commited on
Commit
6ae8bf5
·
verified ·
1 Parent(s): ab43b3c

Upload Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -22
Dockerfile CHANGED
@@ -13,7 +13,7 @@
13
  # Size: ~4MB, install time: <10 seconds
14
  # ============================================================
15
 
16
- FROM python:3.11-slim
17
 
18
  ARG DEBIAN_FRONTEND=noninteractive
19
 
@@ -39,25 +39,6 @@ RUN pip install --no-cache-dir \
39
  # Python 3.11 / Linux x86_64 / CPU-only / v0.3.15
40
  # v0.3.15 এ Gemma 3/4 chat format সাপোর্ট আছে
41
  RUN pip install --no-cache-dir \
42
- "https://github.com/sergey21000/llama-cpp-python-wheels/releases/download/v0.3.15-cpu/llama_cpp_python-0.3.15-cp311-cp311-linux_x86_64.whl"
43
 
44
- # ── FastAPI server ─────────────────────────────────────────────
45
- RUN pip install --no-cache-dir \
46
- "fastapi==0.115.5" \
47
- "uvicorn[standard]==0.32.1" \
48
- "pydantic==2.10.3"
49
-
50
- # ── App files ─────────────────────────────────────────────────
51
- WORKDIR /app
52
- COPY download_model.py .
53
- COPY start.sh .
54
- COPY api_server.py .
55
- RUN chmod +x start.sh
56
- RUN mkdir -p /app/models
57
-
58
- RUN useradd -m -u 1000 appuser && \
59
- chown -R appuser:appuser /app
60
- USER appuser
61
-
62
- EXPOSE 7860
63
- CMD ["/app/start.sh"]
 
13
  # Size: ~4MB, install time: <10 seconds
14
  # ============================================================
15
 
16
+ FROM python:3.10-slim
17
 
18
  ARG DEBIAN_FRONTEND=noninteractive
19
 
 
39
  # Python 3.11 / Linux x86_64 / CPU-only / v0.3.15
40
  # v0.3.15 এ Gemma 3/4 chat format সাপোর্ট আছে
41
  RUN pip install --no-cache-dir \
42
+ "https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl"
43
 
44
+ # ── FastAPI server ──────────────────────────────────────