ffreemt commited on
Commit
ef60910
·
1 Parent(s): 334c5cf
Files changed (2) hide show
  1. Dockerfile +15 -0
  2. README.md +2 -2
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+ RUN apt update && \
3
+ apt install git && \
4
+ git clone https://github.com/lanqian528/chat2api.git /app
5
+ ENV PIP_ROOT_USER_ACTION=ignore \
6
+ TZ=Asia/Shanghai \
7
+ PORT=7860
8
+ WORKDIR /app
9
+ RUN mkdir -p /app/data
10
+ RUN chmod -R 777 /app/data
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ EXPOSE $PORT
14
+
15
+ CMD ["python", "app.py", "--host", "0.0.0.0:$PORT"]
README.md CHANGED
@@ -1,10 +1,10 @@
1
  ---
2
- title: C2a
3
  emoji: 😻
4
  colorFrom: green
5
  colorTo: purple
6
  sdk: docker
7
- pinned: false
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: c2a
3
  emoji: 😻
4
  colorFrom: green
5
  colorTo: purple
6
  sdk: docker
7
+ pinned: true
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference