-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (25 loc) · 862 Bytes
/
Dockerfile
File metadata and controls
38 lines (25 loc) · 862 Bytes
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
FROM java:8
LABEL maintainer = "nmsa@dei.uc.pt"
LABEL Description = "Docker image for the LightPrivacyService"
LABEL Vendor = "UC & UNICAMP"
LABEL Version = "0.3"
# Install maven
RUN apt-get update && \
apt-get install -y maven && \
rm -rf /var/lib/apt/lists/*
WORKDIR /PRIVAaaS
# Adding third party dependency
COPY install /PRIVAaaS/install
RUN cd install && sh install.sh
# Adding source, pom.xml
COPY pom.xml /PRIVAaaS/pom.xml
COPY src /PRIVAaaS/src
# Maybe this is not needed...
COPY input /PRIVAaaS/input
# Prepare by downloading dependencies
# RUN ["mvn", "dependency:resolve"]
# RUN ["mvn", "verify"]
# Compile and package into a fat jar
RUN ["mvn", "package"]
EXPOSE 4567
CMD ["/usr/lib/jvm/java-8-openjdk-amd64/bin/java", "-jar", "target/priva-poc-0.3-standalone.jar"]