1 Star 0 Fork 0

陈阳/build-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.69 KB
一键复制 编辑 原始数据 按行查看 历史
陈阳 提交于 2023-03-28 19:29 . .
FROM ubuntu:22.04
# Install tools
RUN apt update \
&& apt install -y wget pandoc curl git subversion
# Install golang
RUN wget https://go.dev/dl/go1.19.7.linux-amd64.tar.gz \
&& tar -xzf go1.19.7.linux-amd64.tar.gz -C /usr/local
ENV GOROOT=/usr/local/go
ENV GOPATH=/home/golang/gopath
ENV GOBIN=$GOPATH/bin
ENV PATH=$PATH:$GOROOT/bin:$GOBIN
RUN go env -w GO111MODULE=on
# Install gcc
RUN apt install -y software-properties-common \
&& add-apt-repository ppa:ubuntu-toolchain-r/test \
&& apt update \
&& apt install g++ -y \
&& apt install pandoc -y \
&& apt install -y libssl-dev \
&& apt install -y libgmp-dev
# && apt install -y python-tk
# Install python, pip and doxygen
RUN apt install -y software-properties-common \
&& add-apt-repository ppa:deadsnakes/ppa \
&& apt update -y \
&& apt install -y python3.7 python3.7-dev python3-distutils \
&& rm /usr/bin/python3 \
&& ln -s /usr/bin/python3.7 /usr/bin/python3 \
&& ln -s /usr/bin/python3.7 /usr/bin/python \
&& apt install -y python3-pip \
&& apt-get install -y python3.7-distutils \
&& apt-get install -y libgl1 \
&& apt install -y doxygen \
&& apt clean
# Install rtd themes and update the config file
RUN pip install -U sphinx_rtd_theme \
&& pip install -U bs4 \
&& pip install -U sphinx \
&& pip install -U grpcio \
&& pip install -U easydict \
&& pip install jinja2==3.0.3 \
&& pip install nbsphinx \
&& pip install IPython \
&& pip install setuptools==65.5.0 \
&& pip install gitpython \
&& pip install lxml
COPY . /root/build-docs
RUN cd /root/build-docs \
&& go build -o build main.go \
&& chmod 777 -R push.sh
WORKDIR /root/build-docs
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ChenYang_LaoTie/build-docs.git
[email protected]:ChenYang_LaoTie/build-docs.git
ChenYang_LaoTie
build-docs
build-docs
master

搜索帮助