-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (18 loc) · 741 Bytes
/
Dockerfile
File metadata and controls
24 lines (18 loc) · 741 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
FROM ubuntu:14.04
# Declare working directory
WORKDIR /var/app/current
# Update Package
sudo apt-get update -y
# Add oracle java 7 repository
RUN apt-get -y install software-properties-common
RUN add-apt-repository ppa:webupd8team/java
RUN apt-get -y update
# Accept the Oracle Java license
RUN echo "oracle-java7-installer shared/accepted-oracle-license-v1-1 boolean true" | debconf-set-selections
# Install Oracle Java
RUN apt-get -y install oracle-java7-installer
RUN update-alternatives --display java
ENV JAVA_HOME /usr/lib/jvm/java-7-oracle
# Install VB Service APIs
EXPOSE 8080
CMD ["java", "-jar", "VB_API_Services/target/vb-api-services-0.0.1-SNAPSHOT.jar", "server", "VB_API_Services/src/main/resources/vb-api-services.yml"]