Theright07 commited on
Commit
1b27b35
·
verified ·
1 Parent(s): 1d9908c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ git \
7
+ curl \
8
+ wget \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ RUN pip install --no-cache-dir \
12
+ torch \
13
+ transformers \
14
+ accelerate \
15
+ gradio
16
+
17
+ COPY app.py .
18
+
19
+ EXPOSE 7860
20
+
21
+ CMD ["python", "app.py"]