-
Notifications
You must be signed in to change notification settings - Fork 12
/
Dockerfile
57 lines (46 loc) · 1.5 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Scala on Java 7
#
# URL: https://github.com/William-Yeh/docker-scala
#
# forked from: pulse00/scala
# - https://index.docker.io/u/pulse00/scala/
# - https://github.com/dubture-dockerfiles/scala
#
# Version 0.7
FROM williamyeh/java7
MAINTAINER William Yeh <[email protected]>
ENV SCALA_VERSION 2.11.6
ENV SCALA_TARBALL http://www.scala-lang.org/files/archive/scala-$SCALA_VERSION.deb
RUN \
echo "==> Install curl helper tool..." && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --force-yes curl && \
\
\
\
echo "===> install from Typesafe repo (contains old versions but they have all dependencies we need later on)" && \
curl -sSL http://apt.typesafe.com/repo-deb-build-0002.deb -o repo-deb.deb && \
dpkg -i repo-deb.deb && \
apt-get update && \
\
\
\
echo "===> install Scala" && \
DEBIAN_FRONTEND=noninteractive \
apt-get install -y --force-yes libjansi-java && \
curl -sSL $SCALA_TARBALL -o scala.deb && \
dpkg -i scala.deb && \
\
\
\
echo "===> clean up..." && \
rm -f *.deb && \
apt-get remove -y --auto-remove curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# print versions
#RUN java -version
# scala -version returns code 1 instead of 0 thus "|| true"
#RUN scala -version || true
# Define default command.
CMD ["scala"]