2 Star 4 Fork 17

八爪鱼工作室 / 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"]
Python
1
https://gitee.com/elfbobo/django-idcops.git
git@gitee.com:elfbobo/django-idcops.git
elfbobo
django-idcops
django-idcops
master

搜索帮助