1 Star 0 Fork 18

muzappar715/fastapi_sqlalchemy_mysql

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 699 Bytes
一键复制 编辑 原始数据 按行查看 历史
wu-clan 提交于 2024-03-23 18:36 . 重构后端架构(覆盖推送)
FROM python:3.10-slim
WORKDIR /fsm
COPY . .
RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources \
&& sed -i 's|security.debian.org/debian-security|mirrors.ustc.edu.cn/debian-security|g' /etc/apt/sources.list.d/debian.sources
RUN apt-get update \
&& apt-get install -y --no-install-recommends gcc python3-dev \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple \
&& pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple \
ENV TZ = Asia/Shanghai
RUN mkdir -p /var/log/fastapi_server
EXPOSE 8001
CMD ["uvicorn", "main:app", "--host", "127.0.0.1", "--port", "8000"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/muzappar715/fastapi_sqlalchemy_mysql.git
git@gitee.com:muzappar715/fastapi_sqlalchemy_mysql.git
muzappar715
fastapi_sqlalchemy_mysql
fastapi_sqlalchemy_mysql
master

搜索帮助