Skip to content

Commit 0df335d

Browse files
committed
Add Dockerfile for making html, pdf, ebook
1 parent 560f5fc commit 0df335d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Dockerfile

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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"]

0 commit comments

Comments
 (0)