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