7 Star 48 Fork 16

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
Python
1
https://gitee.com/deali/DjangoStarter.git
git@gitee.com:deali/DjangoStarter.git
deali
DjangoStarter
DjangoStarter
master

搜索帮助