Niansuh commited on
Commit
cfaac15
·
verified ·
1 Parent(s): 28f6091

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ FROM python:3.11-slim
3
+
4
+ RUN apt-get update && apt-get install -y git
5
+
6
+ RUN git clone https://github.com/Niansuh/chat2api.git /app
7
+
8
+ WORKDIR /app
9
+
10
+ RUN mkdir /app/data && chmod -R 777 /app/data
11
+
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ EXPOSE 5005
15
+
16
+ ENV API_PREFIX="nai"
17
+
18
+ CMD ["python", "app.py"]