Update Dockerfile
Browse files- Dockerfile +2 -16
Dockerfile
CHANGED
|
@@ -1,17 +1,3 @@
|
|
| 1 |
-
FROM
|
| 2 |
-
RUN apt update
|
| 3 |
-
RUN apt install git
|
| 4 |
-
RUN git clone https://github.com/lanqian528/chat2api.git /app
|
| 5 |
|
| 6 |
-
|
| 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 |
-
ENV API_PREFIX="nai"
|
| 16 |
-
|
| 17 |
-
CMD ["python", "app.py", "--host", "0.0.0.0:5005"]
|
|
|
|
| 1 |
+
FROM lanqian528/chat2api:latest
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
+
RUN chmod 777 -R /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|