File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed
Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ # This Dockerfile is for making html, ebook, pdf of progit2-ko.
2+ #
3+ # Build Locally:
4+ # docker build -t progit2-ko .
5+ #
6+ # Run Locally Built Image:
7+ # docker run -it --rm -v `pwd`:/progit2-ko progit2-ko bash -c 'cd /progit2-ko; bundle exec rake book:build'
8+ #
9+ # Pull Image:
10+ # docker pull lethee/progit2-ko:latest
11+ #
12+ # Run pulled Image:
13+ # docker run -it --rm -v `pwd`:/progit2-ko lethee/progit2-ko:latest bash -c 'cd /progit2-ko; bundle exec rake book:build'
14+
15+ FROM ubuntu:focal
16+
17+ ENV DEBIAN_FRONTEND noninteractive
18+ ENV LC_ALL C.UTF-8
19+
20+ RUN sed -i 's/archive.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list
21+ RUN sed -i 's/security.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list
22+ RUN sed -i 's/extras.ubuntu.com/mirror.kakao.com/g' /etc/apt/sources.list
23+
24+ RUN apt update
25+ RUN apt install -y --no-install-recommends build-essential
26+ RUN apt install -y --no-install-recommends git libffi-dev libcurl4 bsdmainutils
27+ RUN apt install -y --no-install-recommends ruby ruby-dev racc
28+ RUN gem install bundler
29+
30+ COPY Gemfile Gemfile
31+ RUN bundle install
32+ RUN asciidoctor-pdf-cjk-kai_gen_gothic-install
33+
34+ CMD ["/bin/bash" ]
You can’t perform that action at this time.
0 commit comments