rexcloaa commited on
Commit
68e249b
·
verified ·
1 Parent(s): d984c4b

Update Dockerfile

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