forked from kumarsanthosh653/SaiJavaCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
28 lines (18 loc) · 701 Bytes
/
Dockerfile
File metadata and controls
28 lines (18 loc) · 701 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
FROM alpine:latest
FROM openjdk:11.0.13
# Checking Java version
RUN java -version
# Fetching jetty distribution package
RUN wget -q -O /jetty.tar.gz "https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/10.0.0.beta0/jetty-distribution-10.0.0.beta0.tar.gz"
# Installing Jetty
RUN tar -xvf /jetty.tar.gz && rm /jetty.tar.gz && mv jetty-distribution-10.0.0.beta0 /opt/jetty
# Redirecting to Working Directory
WORKDIR /opt/jetty
# Copying War file to desired Jetty destination
COPY webapp.war /opt/jetty/ROOT.war
COPY webapp.war /opt/jetty/webapps/ROOT.war
COPY webapp.war /opt/jetty/demo-base/
# Executing Jetty
CMD ["/opt/jetty/bin/jetty.sh", "run"]
# Exposing Port
EXPOSE 8080