Create Dockerfile
Browse files- 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"]
|