-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
21 lines (19 loc) · 949 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Start from alpine linux 3.6.* with glibc 2.26 and oracle jdk 8u144
FROM mbe1224/alpine-oraclejdk:3.6-2.26-8u144
# Setup SCALA_HOME
ENV SCALA_HOME=/usr/share/scala
# Install Scala 2.12.3
RUN SCALA_VERSION=2.12.3 && \
SCALA_SHA256_SUM=2b796ab773fbedcc734ba881a6486d54180b699ade8ba7493e91912044267c8c && \
apk add --no-cache --virtual=.build-dependencies wget ca-certificates && \
apk add --no-cache bash && \
cd "/tmp" && \
wget "http://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \
echo "${SCALA_SHA256_SUM} scala-${SCALA_VERSION}.tgz" | sha256sum -c - && \
tar xzf "scala-${SCALA_VERSION}.tgz" && \
mkdir "${SCALA_HOME}" && \
rm "/tmp/scala-${SCALA_VERSION}/bin/"*.bat && \
mv "/tmp/scala-${SCALA_VERSION}/bin" "/tmp/scala-${SCALA_VERSION}/lib" "${SCALA_HOME}" && \
ln -s "${SCALA_HOME}/bin/"* "/usr/bin/" && \
apk del .build-dependencies && \
rm -rf "/tmp/"*