theghostcmd commited on
Commit
44b0c9c
·
verified ·
1 Parent(s): 526b431

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy requirements first for better caching
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy the inference script
10
+ COPY inference.py .
11
+
12
+ # Set environment variables (defaults, but will be overridden by runtime)
13
+ ENV API_BASE_URL=""
14
+ ENV MODEL_NAME=""
15
+ ENV HF_TOKEN=""
16
+
17
+ EXPOSE 7860
18
+
19
+ CMD ["python", "inference.py"]