Files
FileCodeBox/Dockerfile
T

13 lines
329 B
Docker
Raw Permalink Normal View History

2022-12-09 19:06:47 +08:00
FROM python:3.9.5
LABEL author="Lan"
LABEL email="vast@tom.com"
2022-12-11 18:03:46 +08:00
LABEL version="1.4.2"
2022-12-09 19:06:47 +08:00
COPY . /app
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
WORKDIR /app
2022-12-11 18:03:46 +08:00
RUN pip install -r requirements.txt
2022-12-09 23:37:04 +08:00
EXPOSE 12345
2022-12-09 19:06:47 +08:00
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "12345"]