1 Star 0 Fork 0

D瓜哥/asciidoctor.cn

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Dockerfile 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
# To build image:
# docker build -t asciidoctor/asciidoctor-site .
# To run image:
# docker run -it --rm --net=host -p 4242:4242 asciidoctor/asciidoctor-site
FROM fedora:24
MAINTAINER Asciidoctor
LABEL Description="This image provides the toolchain for building the asciidoctor.org website."
RUN echo "deltarpm=false" >> /etc/dnf/dnf.conf
RUN dnf -y update
RUN dnf -y install \
git \
libffi-devel \
libxml2-devel \
libxslt-devel \
patch redhat-rpm-config \
ruby-devel \
rubygem-bundler
RUN dnf -y groupinstall "C Development Tools and Libraries"
RUN dnf clean all
RUN echo -e "To launch site, use the following command:\n\n $ bundle exec rake preview" > /etc/motd
RUN echo "[ -v PS1 -a -r /etc/motd ] && cat /etc/motd" > /etc/profile.d/motd.sh
RUN groupadd -r writer && useradd -g writer -u 1000 writer
RUN mkdir -p /home/writer
RUN chown writer:writer /home/writer
USER writer
ENV HOME /home/writer
ENV PROJECT_GIT_REPO https://github.com/asciidoctor/asciidoctor.org
ENV PROJECT_DIR $HOME/asciidoctor.org
ENV LANG en_US.UTF-8
WORKDIR $HOME
RUN git clone --single-branch --depth 1 $PROJECT_GIT_REPO $PROJECT_DIR
WORKDIR $PROJECT_DIR
RUN bundle config --local build.nokogiri --use-system-libraries
RUN bundle --path=.bundle/gems
RUN rm -rf .bundle/gems/ruby/*/cache
EXPOSE 4242
CMD ["bash", "--login"]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/diguage/asciidoctor.cn.git
git@gitee.com:diguage/asciidoctor.cn.git
diguage
asciidoctor.cn
asciidoctor.cn
master

搜索帮助