8e commited on
Commit
2458ddb
·
verified ·
1 Parent(s): cd2f99f

Create Dockerfile

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