forked from Quintor/quindy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (19 loc) · 903 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:16.04
# First install software-properties-common for add-apt-repository, and apt-transport-https to communicate.
RUN apt-get update \
&& apt-get install -y software-properties-common \
apt-transport-https \
maven \
&& apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 68DB5E88 \
&& add-apt-repository "deb https://repo.sovrin.org/sdk/deb xenial stable" \
&& add-apt-repository ppa:openjdk-r/ppa \
&& apt-get update \
&& apt-get install -y openjdk-11-jdk
# Set the default Libindy version. Will be overwritten when argument is supplied from console
ARG LIBINDY_VERSION=1.6.6
# Split off libindy command for fast builds on version bump
RUN apt-get update && apt-get install -y libindy=$LIBINDY_VERSION
ADD pom.xml /
RUN mvn package
ADD . /
CMD sh -e -c "if $DEPLOY; then mvn clean package verify deploy; else mvn verify; fi"