forked from open-horizon/exchange-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-bld
18 lines (14 loc) · 902 Bytes
/
Dockerfile-bld
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM ubuntu:latest
# FROM debian:jessie
MAINTAINER bruce potter <[email protected]>
ARG SCALA_VERSION
# install build tools: curl, java, sbt
# https is needed to get the sbt deb from its apt repo
RUN apt-get update && apt-get install -y apt-transport-https gnupg ca-certificates
RUN echo "deb https://dl.bintray.com/sbt/debian /" > /etc/apt/sources.list.d/sbt.list && apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
RUN apt-get update && apt-get install -y curl openjdk-8-jdk sbt
# install scala
RUN curl -s http://downloads.lightbend.com/scala/$SCALA_VERSION/scala-$SCALA_VERSION.tgz | tar -zx -C /usr/local/share
RUN ln -s `ls -1dr /usr/local/share/scala-2* | head -1` /usr/local/share/scala
ENV PATH="/usr/local/share/scala/bin:$PATH"
# the exchange api war file is built from the Makefile using a cmd like: cd $EXCHANGE_API_DIR && sbt package