Create Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y --no-install-recommends tzdata git && \
|
4 |
+
rm -rf /var/lib/apt/lists/*
|
5 |
+
|
6 |
+
ENV TZ=Asia/Shanghai
|
7 |
+
|
8 |
+
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
9 |
+
|
10 |
+
WORKDIR /app
|
11 |
+
|
12 |
+
RUN git clone https://github.com/cnbeining/Zed2API.git .
|
13 |
+
|
14 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
15 |
+
|
16 |
+
EXPOSE 8000
|
17 |
+
|
18 |
+
CMD ["uvicorn", "app:asgi_app", "--host", "0.0.0.0", "--port", "8000"]
|