zhengr commited on
Commit
6b6fa7d
·
verified ·
1 Parent(s): e763280

Upload 2 files

Browse files
Files changed (2) hide show
  1. Dockerfile +12 -0
  2. README.md +5 -4
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
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"]
README.md CHANGED
@@ -1,11 +1,12 @@
1
  ---
2
  title: Chat2api
3
- emoji: 🚀
4
- colorFrom: green
5
- colorTo: blue
6
  sdk: docker
7
  pinned: false
8
- license: apache-2.0
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
  title: Chat2api
3
+ emoji: 💻
4
+ colorFrom: gray
5
+ colorTo: purple
6
  sdk: docker
7
  pinned: false
8
+ license: mit
9
+ app_port: 5005
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference