1 Star 1 Fork 2

8686555/python-api-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 604 Bytes
一键复制 编辑 原始数据 按行查看 历史
FROM python:3.8-slim-bullseye
# 设置时间为上海时间
ENV TZ=Asia/Shanghai DEBIAN_FRONTEND=noninteractive
RUN sed -i s/deb.debian.org/mirrors.ustc.edu.cn/g /etc/apt/sources.list
RUN apt update \
&& apt install -y tzdata \
&& ln -fs /usr/share/zoneinfo/${TZ} /etc/localtime \
&& echo ${TZ} > /etc/timezone \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY ./requirements.txt /app/requirements.txt
RUN pip install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple
COPY ./ /app/
CMD python -m server.main
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/8686555/python-api-template.git
git@gitee.com:8686555/python-api-template.git
8686555
python-api-template
python-api-template
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385