完善文档,以及docker新增文件夹映射

This commit is contained in:
lan-air
2022-12-11 23:06:28 +08:00
parent cfd2989bc0
commit 42dedfae1e
+2 -4
View File
@@ -1,13 +1,11 @@
FROM python:3.9.5
LABEL author="Lan"
LABEL email="vast@tom.com"
LABEL version="1.4.2"
LABEL version="1.4.4"
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
EXPOSE 12345
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "12345"]
CMD ["python","main.py"]