longjava2024 commited on
Commit
ce6cc1f
·
verified ·
1 Parent(s): 6c29619
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ git \
7
+ build-essential \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ RUN pip install --no-cache-dir \
11
+ fastapi \
12
+ uvicorn \
13
+ torch \
14
+ transformers \
15
+ accelerate \
16
+ bitsandbytes
17
+
18
+ COPY app.py /app/app.py
19
+
20
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]