Create Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
ENV TZ=Asia/Shanghai
|
| 3 |
+
|
| 4 |
+
WORKDIR /app
|
| 5 |
+
|
| 6 |
+
RUN apt-get update && apt-get install -y git
|
| 7 |
+
|
| 8 |
+
RUN git clone https://github.com/yunflour/h2ogpte2api /app
|
| 9 |
+
|
| 10 |
+
RUN python -m pip install --upgrade pip && \
|
| 11 |
+
python -m pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
RUN chmod -R 777 /app
|
| 14 |
+
|
| 15 |
+
CMD ["python", "main.py"]
|