# HG changeset patch # User akahori # Date 1553188463 -32400 # Node ID f3fc48fa7287cb985c46d57797cc057e4ca73114 # Parent 95eafbd91f4100ad8b38370b0359dfb6a4846e42 refactor dockerfile diff -r 95eafbd91f41 -r f3fc48fa7287 Dockerfile --- a/Dockerfile Fri Mar 22 01:59:33 2019 +0900 +++ b/Dockerfile Fri Mar 22 02:14:23 2019 +0900 @@ -1,9 +1,15 @@ FROM alpine:3.9 # slideshow 4.1.0 is latest now -RUN apk add --update --no-cache ruby ruby-json ruby-bigdecimal ruby-etc \ +ARG slideshow_version="4.1.0" +ARG ruby_version="2.5.3-r1" + +RUN apk add --update --no-cache ruby==${ruby_version} \ + ruby-json==${ruby_version} \ + ruby-bigdecimal==${ruby_version} \ + ruby-etc==${ruby_version} \ mercurial &&\ - gem install -N slideshow -v 4.1.0 && \ + gem install -N slideshow -v ${slideshow_version} && \ mkdir -p ~/.slideshow/templates &&\ hg clone http://www.cr.ie.u-ryukyu.ac.jp/hg/Members/anatofuz/slideshow-s6cr/ ~/.slideshow/templates &&\ apk del mercurial