Skip to content

Commit

Permalink
* make Dockerfile cacheable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mame committed Apr 17, 2016
1 parent 86f3b4d commit 2eee019
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
FROM ubuntu:15.10
ENV PATH /usr/games:$PATH
ADD . /usr/local/share/quine-relay
WORKDIR /usr/local/share/quine-relay
RUN apt-get update && apt-get upgrade -y
RUN apt-get -qq install -y afnix && apt-get clean
RUN apt-get -qq install -y algol68g && apt-get clean
Expand Down Expand Up @@ -95,5 +92,8 @@ RUN apt-get -qq install -y valac && apt-get clean
RUN apt-get -qq install -y xsltproc && apt-get clean
RUN apt-get -qq install -y yorick && apt-get clean
RUN apt-get -qq install -y zoem && apt-get clean
ENV PATH /usr/games:$PATH
ADD . /usr/local/share/quine-relay
WORKDIR /usr/local/share/quine-relay
RUN make -C vendor
CMD make check
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ I used the following Ubuntu deb packages to test this program.
54 |GAP |gap |4r7p8-1
55 |GEL (Genius) |genius |1.0.20-2
56 |Gnuplot |gnuplot |4.6.6-2
57 |Go |golang |2:1.5.1-0ubuntu2
57 |Go |golang |2:1.5.1-0ubuntu2.1
58 |G-Portugol |gpt |1.1-2ubuntu2
59 |Gri |gri |2.12.23-9build1
60 |Groovy |groovy |2.0.0~beta2+isreally1.8.6-4ubuntu1
Expand Down Expand Up @@ -268,7 +268,7 @@ I used the following Ubuntu deb packages to test this program.
87 |PARI/GP |pari-gp |2.7.4-2
88 |Parrot asm |parrot |6.6.0-1build1
89 |Pascal |fp-compiler |2.6.4+dfsg-8
90 |Perl |perl |5.20.2-6ubuntu0.1
90 |Perl |perl |5.20.2-6ubuntu0.2
91 |PHP |php5-cli |5.6.11+dfsg-1ubuntu3.1
92 |Piet |*N/A* |-
93 |Pike |pike8.0 |8.0.28-3
Expand Down
7 changes: 3 additions & 4 deletions src/Dockerfile.gen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@

dockerfile = []
dockerfile << "FROM ubuntu:15.10"
dockerfile << "ENV PATH /usr/games:$PATH"
dockerfile << "ADD . /usr/local/share/quine-relay"
dockerfile << "WORKDIR /usr/local/share/quine-relay"
dockerfile << "RUN apt-get update && apt-get upgrade -y"

apts.each do |apt|
dockerfile << "RUN apt-get -qq install -y #{ apt } && apt-get clean"
end
dockerfile << "ENV PATH /usr/games:$PATH"
dockerfile << "ADD . /usr/local/share/quine-relay"
dockerfile << "WORKDIR /usr/local/share/quine-relay"
dockerfile << "RUN make -C vendor"
dockerfile << "CMD make check"

Expand Down

0 comments on commit 2eee019

Please sign in to comment.