This repository was archived by the owner on May 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (30 loc) · 1.49 KB
/
Dockerfile
File metadata and controls
48 lines (30 loc) · 1.49 KB
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
# Dockerfile
FROM debian:stretch
MAINTAINER Markus Sabadello <markus@danubetech.com>
USER root
RUN apt-get -y update
RUN apt-get install -y --no-install-recommends openjdk-8-jdk maven
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64/
ENV PATH $JAVA_HOME/bin:$PATH
# build dependencies
RUN apt-get install -y --no-install-recommends git
RUN apt-get install -y --no-install-recommends libsodium-dev
RUN cd /opt/ && git clone https://github.com/decentralized-identity/universal-resolver.git
RUN cd /opt/universal-resolver/implementations/java && mvn clean
RUN cd /opt/universal-resolver/implementations/java && mvn install -N -DskipTests
RUN cd /opt/universal-resolver/implementations/java/uni-resolver-core && mvn install -N -DskipTests
RUN cd /opt/universal-resolver/implementations/java/uni-resolver-client && mvn install -N -DskipTests
RUN cd /opt/ && git clone https://github.com/WebOfTrustInfo/ld-signatures-java.git
RUN cd /opt/ld-signatures-java && mvn clean
RUN cd /opt/ld-signatures-java && mvn install -N -DskipTests
RUN cd /opt/ && git clone https://github.com/TrustNetFI/verifiable-credentials-java.git
RUN cd /opt/verifiable-credentials-java && mvn clean
RUN cd /opt/verifiable-credentials-java && mvn install -N -DskipTests
# build did-auth-relying-party
ADD . /opt/did-auth-relying-party
RUN cd /opt/did-auth-relying-party && mvn clean && mvn package
# clean up
RUN apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# done
EXPOSE 8080
CMD "/opt/did-auth-relying-party/Docker-run.sh"