1 Star 0 Fork 45

homeleaf/codo-cmdb

forked from opendevops/codo-cmdb 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
BaseDockerfile 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
FROM cloudopendevops/codo_base:latest
# 已经装好的Python3镜像,可以docker pull cloudopendevops/codo_base,在国外有点慢
# 设置编码
#ENV LANG en_US.UTF-8
# 同步时间
#ENV TZ=Asia/Shanghai
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
## 1. 安装基本依赖
#RUN yum update -y && yum install epel-release -y && yum update -y && yum install wget unzip epel-release nginx xz gcc automake zlib-devel openssl-devel supervisor groupinstall development libxslt-devel libxml2-devel libcurl-devel git -y
##WORKDIR /var/www/
## 2. 准备python
#RUN wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tar.xz
#RUN xz -d Python-3.6.6.tar.xz && tar xvf Python-3.6.6.tar && cd Python-3.6.6 && ./configure && make && make install
# 3. 安装websdk
RUN pip3 install --upgrade pip
RUN pip3 install -U git+https://github.com/ss1917/ops_sdk.git
# 4. 复制代码
RUN mkdir -p /var/www/
ADD . /var/www/codo-cmdb/
# 5. 安装pip依赖
RUN pip3 install -r /var/www/codo-cmdb/doc/requirements.txt
# 6. 日志
VOLUME /var/log/
# 7. 准备文件
COPY doc/nginx_ops.conf /etc/nginx/conf.d/default.conf
COPY doc/supervisor_ops.conf /etc/supervisord.conf
EXPOSE 80
CMD ["/usr/bin/supervisord"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/homeleaf/codo-cmdb.git
[email protected]:homeleaf/codo-cmdb.git
homeleaf
codo-cmdb
codo-cmdb
master

搜索帮助