0
|
1 FROM alpine:3.9
|
|
2
|
|
3 # slideshow 4.1.0 is latest now
|
1
|
4 ARG slideshow_version="4.1.0"
|
|
5 ARG ruby_version="2.5.3-r1"
|
|
6
|
|
7 RUN apk add --update --no-cache ruby==${ruby_version} \
|
|
8 ruby-json==${ruby_version} \
|
|
9 ruby-bigdecimal==${ruby_version} \
|
|
10 ruby-etc==${ruby_version} \
|
0
|
11 mercurial &&\
|
1
|
12 gem install -N slideshow -v ${slideshow_version} && \
|
0
|
13 mkdir -p ~/.slideshow/templates &&\
|
|
14 hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/Members/anatofuz/slideshow-s6cr/ ~/.slideshow/templates &&\
|
|
15 apk del mercurial
|
|
16
|
|
17 WORKDIR /slideshow
|
|
18
|
|
19 # [comb cmd with entorypoint](https://qiita.com/hihihiroro/items/d7ceaadc9340a4dbeb8f)
|
|
20
|
|
21 ENTRYPOINT ["slideshow", "build", "-t", "s6cr"]
|
|
22 CMD ["README.md"] |