1 Star 0 Fork 223

wzy/AnsibleUI

forked from 纳兰秋水/AnsibleUI 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
lwr.dgas 提交于 2019-06-12 18:03 . 添加数据库字段
FROM centos
ADD . /data
COPY ./files/CentOS7-Base-163.repo /etc/yum.repos.d/CentOS-Base.repo
COPY ./files/yum.conf /etc/
#RUN yum makecache
RUN yum -y install epel-release
RUN yum -y install gcc-c++ openssl-devel python-pip python-devel make libffi-devel mysql-devel sqlite-devel
#RUN yum clean all
ADD ./files/Python-3.7.3.tgz /usr/local/src/
WORKDIR /usr/local/src/Python-3.7.3
RUN ./configure --prefix=/usr/local/PyAnsibleUI && make && make install
WORKDIR /data/
ENV PATH /usr/local/PyAnsibleUI/bin:$PATH
# RUN /usr/local/PyAnsibleUI/bin/pip3 install --find-links=/data/files --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
RUN /usr/local/PyAnsibleUI/bin/pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
# 数据库建表
# RUN /usr/local/python3/bin/python3 manage.py makemigrations
# RUN /usr/local/python3/bin/python3 manage.py migrate
EXPOSE 10089
CMD ["/data/dockerRun.sh"]
#docker build -t ansible_ui .
#docker run -it -p 10089:10089 -v `pwd`:/data ansible_ui
#docker run --privileged -it -p 10090:10089 -v `pwd`:/data ansible_ui /usr/sbin/init
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/xrjf/AnsibleUI.git
git@gitee.com:xrjf/AnsibleUI.git
xrjf
AnsibleUI
AnsibleUI
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385