1 Star 0 Fork 256

pojunxing/django-idcops

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 921 Bytes
一键复制 编辑 原始数据 按行查看 历史
ydw766 提交于 2021-10-25 10:28 . add device height, fix device data command
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 ["chmod", "+x", "./config/entrypoint.sh"]
# run entrypoint.sh
ENTRYPOINT ["./config/entrypoint.sh"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/chengyechun/django-idcops.git
git@gitee.com:chengyechun/django-idcops.git
chengyechun
django-idcops
django-idcops
master

搜索帮助