rkihacker commited on
Commit
9c950b3
·
verified ·
1 Parent(s): cf42978

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1 \
4
+ PYTHONUNBUFFERED=1
5
+
6
+ WORKDIR /app
7
+
8
+ # System deps for httpx/ssl if needed
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ ca-certificates curl && \
11
+ rm -rf /var/lib/apt/lists/*
12
+
13
+ COPY requirements.txt .
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ COPY main.py .
17
+
18
+ # Expose FastAPI default port
19
+ EXPOSE 8000
20
+
21
+ # Env vars (provide at runtime)
22
+ # HF_TOKEN=your_hf_token
23
+ # UPLOAD_ACCESS_TOKEN=your_snapzion_token
24
+ # optional: UPLOAD_URL, WAN_MODEL, HF_ENDPOINT, POLL_* settings
25
+
26
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]