1 Star 0 Fork 0

h5/DeepBI

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile.template 1.99 KB
一键复制 编辑 原始数据 按行查看 历史
FROM python:3.8.18-slim
## out port
EXPOSE 8338 8339 8340
# Controls whether to install extra dependencies needed for all data sources.
ARG skip_ds_deps=true
# Controls whether to install dev dependencies. If need, set skip_dev_deps eq ''
ARG skip_dev_deps=yes
#RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list
#RUN echo "deb http://mirrors.aliyun.com/debian/ buster main" > /etc/apt/sources.list
## Create user
# RUN useradd --create-home deepbi
## Ubuntu use aliyun source
RUN apt-get update
## Ubuntu packages
RUN apt-get clean
RUN apt-get update
RUN apt-get install -y --no-install-recommends \
curl \
gnupg \
build-essential \
pwgen \
libffi-dev \
sudo \
git-core \
# Postgres client
libpq-dev \
# ODBC support:
g++ unixodbc-dev \
# for SAML
xmlsec1 \
# Additional packages required for data sources:
libssl-dev \
default-libmysqlclient-dev \
freetds-dev \
libsasl2-dev \
unzip \
libsasl2-modules-gssapi-mit && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
#
# ali pip source
#CN#RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
#CN#RUN pip install --upgrade pip
# COPY --chown=deepbi . /app
COPY ./vrequment.txt /app/vrequment.txt
WORKDIR /app
## Disable PIP Cache and Version Check
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PIP_NO_CACHE_DIR=1
## rollback pip version to avoid legacy resolver problem
RUN pip install pip==20.2.4
## We first copy only the requirements file, to avoid rebuilding on every file change.
RUN if [ "x$skip_dev_deps" = "x" ] ; then pip install -r requirements_dev.txt ; fi
#
RUN pip install -r vrequment.txt
#
## fix python 3.8.18 error import .
RUN sed -i 's/from importlib_resources import path/from importlib.resources import path/g' /usr/local/lib/python3.8/site-packages/saml2/sigver.py
RUN sed -i 's/from importlib_resources import path/from importlib.resources import path/g' /usr/local/lib/python3.8/site-packages/saml2/xml/schema/__init__.py
ENTRYPOINT ["/app/bin/docker-entrypoint"]
CMD ["server"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/real-h5/DeepBI.git
git@gitee.com:real-h5/DeepBI.git
real-h5
DeepBI
DeepBI
main

搜索帮助