1 Star 0 Fork 21

Jason-asj/DjangoStarter

forked from DealiAxy/DjangoStarter 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 555 Bytes
一键复制 编辑 原始数据 按行查看 历史
DealiAxy 提交于 2020-07-10 10:36 . init commit
FROM python:3.8
# 设置 python 环境变量
ENV PYTHONUNBUFFERED 1
# 创建 code 文件夹并将其设置为工作目录
RUN mkdir /code
WORKDIR /code
# 更新 pip
RUN pip install -i https://mirrors.aliyun.com/pypi/simple pip -U
# 设置国内源
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple
# 将 requirements.txt 复制到容器的 code 目录
ADD requirements.txt /code/
# 安装库
RUN pip install -r requirements.txt
# 将当前目录复制到容器的 code 目录
ADD . /code
# 安装uwsgi
RUN pip install uwsgi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/jason-asj/DjangoStarter.git
git@gitee.com:jason-asj/DjangoStarter.git
jason-asj
DjangoStarter
DjangoStarter
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385