Files
FileCodeBox/Dockerfile
T

13 lines
294 B
Docker
Raw Permalink Normal View History

FROM python:3.9.5-slim-buster
2022-12-09 19:06:47 +08:00
LABEL author="Lan"
LABEL email="vast@tom.com"
2023-01-16 17:54:08 +08:00
LABEL version="6"
2022-12-09 19:06:47 +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
2022-12-09 19:06:47 +08:00
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
CMD ["python","main.py"]