1 Star 0 Fork 105

shenben/django-idcops

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 891 Bytes
一键复制 编辑 原始数据 按行查看 历史
decbe 提交于 2021-02-04 16:27 . changed .gitignore
FROM python:3.7.7-alpine
# set environment variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
RUN mkdir /opt/django-idcops
WORKDIR /opt/django-idcops
COPY . /opt/django-idcops
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories
RUN apk add jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev \
tiff-dev tk-dev tcl-dev harfbuzz-dev fribidi-dev jpeg g++
RUN pip install -U pip setuptools wheel -i https://mirrors.aliyun.com/pypi/simple/ || \
pip install -U pip setuptools wheel
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ -r /opt/django-idcops/requirements.txt || \
pip install -r /opt/django-idcops/requirements.txt
COPY ./idcops_proj/settings_for_docker.py ./idcops_proj/settings.py
RUN ["rm", "-fr", "/opt/django-idcops/db.sqlite3"]
# run entrypoint.sh
ENTRYPOINT ["/opt/django-idcops/config/entrypoint.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/shenben/django-idcops.git
git@gitee.com:shenben/django-idcops.git
shenben
django-idcops
django-idcops
master

搜索帮助