Skip to content
lethee edited this page Jul 26, 2015 · 6 revisions

Dockerfile

FROM ubuntu:14.04
MAINTAINER Seonghwan Lee <[email protected]>

RUN apt-get update
RUN apt-get install -y git curl python
RUN apt-get install -y ruby-dev make libxml2-dev asciidoctor
RUN gem install bundler

RUN git clone https://github.com/lethee/progit2-ko-1.git -b build --depth 1 /progit2-ko
WORKDIR /progit2-ko
RUN bundler install

CMD git pull && \
bundle exec rake book:build && \
python -m SimpleHTTPServer
    
# docker run -d -p 8000:8000 progit2-build-docker

Command

docker build -t progit2-build-docker . && docker run -i -p 8000:8000 progit2-build-docker

Clone this wiki locally