代码拉取完成,页面将自动刷新
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"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。