Skip to content

Instantly share code, notes, and snippets.

@indigo423
Created January 19, 2017 13:05
Show Gist options
  • Save indigo423/f57830647b505f0662ec3f6fd27e5012 to your computer and use it in GitHub Desktop.
Save indigo423/f57830647b505f0662ec3f6fd27e5012 to your computer and use it in GitHub Desktop.
Dockerfile for AsciiBinder framework
FROM centos/ruby-22-centos7
RUN scl enable rh-ruby22 -- gem install listen -v 3.0.8
RUN scl enable rh-ruby22 -- gem install ascii_binder
USER root
RUN yum install -y java-1.7.0-openjdk && \
yum clean all
LABEL url="http://www.asciibinder.org" \
summary="a documentation system built on Asciidoctor" \
description="AsciiBinder is for documenting versioned, interrelated projects. Run this container image from the documentation repository, which is mounted into the container. Note: Generated files will be owned by root." \
RUN="docker run -it --rm \
-v `pwd`:/docs:z \
IMAGE"
ENV JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.95-2.6.4.0.el7_2.x86_64/jre/
ENV LANG=en_US.UTF-8
WORKDIR /docs
ENTRYPOINT ["/bin/bash", "-c", "asciibinder"]
CMD ["--help"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment