Mr-Help commited on
Commit
efa075c
·
verified ·
1 Parent(s): c82df2e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ ENV PYTHONDONTWRITEBYTECODE=1
4
+ ENV PYTHONUNBUFFERED=1
5
+ ENV PORT=7860
6
+ ENV MODEL_ID=google/gemma-3-1b-it
7
+ ENV MAX_NEW_TOKENS=12
8
+ ENV INTENTS=same_path,change_path,greeting,pricing,booking,complaint,follow_up,other
9
+
10
+ WORKDIR /app
11
+
12
+ RUN apt-get update && apt-get install -y --no-install-recommends \
13
+ git \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ COPY requirements.txt .
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ COPY app.py .
20
+
21
+ EXPOSE 7860
22
+
23
+ CMD uvicorn app:app --host 0.0.0.0 --port ${PORT}