-
Notifications
You must be signed in to change notification settings - Fork 64
Dockerfile
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-dockerFor amazon, like this:
FROM ubuntu:14.04
RUN cd /etc/apt && \
sed -i 's/archive.ubuntu.com/ap-northeast-1.ec2.archive.ubuntu.com/g' sources.list
...Command
docker build -t progit2-build-docker . && docker run -i -p 8000:8000 progit2-build-docker