Create Dockerfile
Browse files- Dockerfile +7 -0
Dockerfile
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
RUN git clone https://github.com/lanqian528/chat2api.git /app
|
| 3 |
+
WORKDIR "app"
|
| 4 |
+
RUN pip install --upgrade pip
|
| 5 |
+
RUN pip install -r requirements.txt
|
| 6 |
+
EXPOSE 5000
|
| 7 |
+
CMD ["python", "api/app.py"]
|