prashasti commited on
Commit
6c0967c
·
1 Parent(s): 41c8edf

Changes for docker

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -2,15 +2,17 @@ FROM python:3.12-slim
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
7
 
 
8
  COPY . .
9
 
10
- ENV API_BASE_URL="https://router.huggingface.co/v1"
11
- ENV MODEL_NAME="Qwen/Qwen2.5-72B-Instruct"
12
- ENV HF_TOKEN=""
13
 
 
14
  EXPOSE 8000
15
 
16
- CMD ["python", "inference.py"]
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # install uv (fast dependency manager)
6
+ RUN pip install --no-cache-dir uv
7
 
8
+ # copy everything
9
  COPY . .
10
 
11
+ # install project from pyproject.toml
12
+ RUN uv pip install --system -e ".[dev]"
 
13
 
14
+ # expose API port (FastAPI default)
15
  EXPOSE 8000
16
 
17
+ # run using your pyproject entrypoint
18
+ CMD ["server"]