QuentinL52 commited on
Commit
868077e
·
verified ·
1 Parent(s): e174405

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ WORKDIR /app
4
+
5
+ ENV HF_HOME=/app/cache
6
+ RUN mkdir -p /app/cache
7
+
8
+ RUN apt-get update && apt-get install -y redis-server && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY requirements.txt .
11
+
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ COPY . .
15
+
16
+ RUN chmod +x ./start.sh
17
+
18
+ EXPOSE 7860
19
+
20
+ CMD ["./start.sh"]