-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.openjdk-sbt
49 lines (41 loc) · 1.43 KB
/
Dockerfile.openjdk-sbt
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
FROM azul/zulu-openjdk-alpine:13.0.1
LABEL "com.quatrolabs.postal"="openjdk-sbt"
LABEL "description"="A security- and privacy-first, mobile-first, and offline-first mail service application"
RUN apk add --update --no-cache \
binutils-gold \
curl \
wget \
bash \
bc \
g++ \
gcc \
gnupg \
libgcc \
linux-headers \
make \
unzip \
python \
postgresql \
postgresql-contrib \
postgresql-libs \
postgresql-dev \
ca-certificates
RUN apk add --update --no-cache nodejs
RUN apk add --update --no-cache yarn
ENV SCALA_VERSION=2.12.8
ENV SCALA_HOME=/usr/share/scala
ENV SBT_VERSION=1.3.3
RUN cd "/tmp" && \
wget "https://downloads.typesafe.com/scala/${SCALA_VERSION}/scala-${SCALA_VERSION}.tgz" && \
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/" && \
rm -rf "/tmp/"*
RUN update-ca-certificates && \
curl -fsL https://github.com/sbt/sbt/releases/download/v${SBT_VERSION}/sbt-${SBT_VERSION}.tgz | tar xfz - -C /usr/local && \
$(mv /usr/local/sbt-launcher-packaging-${SBT_VERSION} /usr/local/sbt || true) && \
ln -s /usr/local/sbt/bin/* /usr/local/bin/
ENV PATH=/usr/local/bin:$PATH
RUN java -version && scala -version && scalac -version && sbt sbtVersion -v