Update Dockerfile
Browse files- Dockerfile +8 -8
Dockerfile
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
-
FROM python:3.11
|
| 2 |
-
|
| 3 |
-
RUN apt install git
|
|
|
|
| 4 |
RUN git clone https://github.com/lanqian528/chat2api.git /app
|
| 5 |
|
| 6 |
-
WORKDIR
|
|
|
|
|
|
|
| 7 |
|
| 8 |
-
RUN mkdir -p /app/data
|
| 9 |
-
RUN chmod -R 777 /app/data
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 11 |
-
RUN pip install python-multipart
|
| 12 |
|
| 13 |
EXPOSE 5005
|
| 14 |
|
| 15 |
-
CMD ["python", "app.py"
|
|
|
|
| 1 |
+
FROM python:3.11-slim
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y git
|
| 4 |
+
|
| 5 |
RUN git clone https://github.com/lanqian528/chat2api.git /app
|
| 6 |
|
| 7 |
+
WORKDIR /app
|
| 8 |
+
|
| 9 |
+
RUN mkdir /app/data && chmod -R 777 /app/data
|
| 10 |
|
|
|
|
|
|
|
| 11 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 12 |
|
| 13 |
EXPOSE 5005
|
| 14 |
|
| 15 |
+
CMD ["python", "app.py"]
|