Files
FileCodeBox/Dockerfile
T

11 lines
275 B
Docker
Raw Permalink Normal View History

2024-05-06 13:02:00 +08:00
FROM python:3.9.5-slim-buster
2022-12-09 19:06:47 +08:00
LABEL author="Lan"
LABEL email="vast@tom.com"
2024-05-06 13:02:00 +08:00
COPY . /app
2023-03-01 01:09:47 +08:00
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
2024-05-06 13:02:00 +08:00
WORKDIR /app
RUN pip install -r requirements.txt
2022-12-09 23:37:04 +08:00
EXPOSE 12345
CMD ["python","main.py"]