-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (31 loc) · 1.06 KB
/
Dockerfile
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
FROM ubuntu:14.04
RUN apt-get update
# Add oracle java 8 repository
RUN echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN apt-get -y install software-properties-common
RUN add-apt-repository -y ppa:webupd8team/java
RUN apt-get update
RUN apt-get install -y oracle-java8-installer maven wget
RUN rm -rf /var/lib/apt/lists/*
RUN rm -rf /var/cache/oracle-jdk8-installer
ENV JAVA_HOME /usr/lib/jvm/java-8-oracle
# Install Maven, wget
RUN apt-get -y install maven wget
# Install Node, bower, grunt, git
#RUN apt-get update
#RUN apt-get install -y nodejs npm git
#RUN update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
#RUN npm install -g grunt-cli
#RUN npm install -g bower
#RUN echo '{ "allow_root": true }' > /root/.bowerrc
COPY . /app
WORKDIR /app
RUN ls -l
RUN mvn install
RUN mkdir -p /opt/tomcat/webapps/
RUN ls -l target/
#RUN unzip ./root/target/wars.zip -d /opt/tomcat/webapps/
RUN cp target/ROOT.war /opt/tomcat/webapps/
RUN ls -l /opt/tomcat/webapps/
EXPOSE 8080
#CMD [ "mvn", "tomcat7:run" ]