This commit is contained in:
lan-air
2022-12-09 19:06:47 +08:00
commit 19806f04c1
9 changed files with 747 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
FROM python:3.9.5
LABEL author="Lan"
LABEL email="vast@tom.com"
LABEL version="1.0"
COPY . /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
WORKDIR /app
RUN pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/
EXPOSE 123456
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "12345"]