Mercurial > hg > Members > akahori > slideshow-docker
changeset 1:f3fc48fa7287
refactor dockerfile
author | akahori |
---|---|
date | Fri, 22 Mar 2019 02:14:23 +0900 |
parents | 95eafbd91f41 |
children | e86dfb640e86 |
files | Dockerfile |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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