nova commited on
Commit
af61ec2
·
verified ·
1 Parent(s): 0d24986

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
+ WORKDIR /app
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y git \
5
+ && rm -rf /var/lib/apt/lists/*
6
+ # Install Python libs
7
+ # optimimum and auto-gptq might be needed for some quantized versions,
8
+ # but for standard Phi-3.5 mini:
9
+ RUN pip install --no-cache-dir \
10
+ torch \
11
+ transformers \
12
+ accelerate \
13
+ gradio \
14
+ protobuf \
15
+ sentencepiece
16
+ # Copy app
17
+ COPY . .
18
+ # Run
19
+ CMD ["python", "app.py"]