duyan2803 commited on
Commit
9d11d55
·
verified ·
1 Parent(s): a37812a

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ git \
5
+ git-lfs \
6
+ ffmpeg \
7
+ libsm6 \
8
+ libxext6 \
9
+ cmake \
10
+ rsync \
11
+ libgl1-mesa-glx \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ WORKDIR /home/user/app
15
+
16
+ RUN pip install --no-cache-dir pip -U
17
+ RUN pip install --no-cache-dir --force-reinstall torch==2.2.0
18
+ RUN pip install --no-cache-dir --force-reinstall transformers==4.38.2
19
+
20
+ COPY requirements.txt .
21
+ RUN pip install --no-cache-dir -r requirements.txt
22
+
23
+ COPY app.py .
24
+
25
+ CMD ["python", "app.py"]