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