-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (26 loc) · 946 Bytes
/
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
FROM ubuntu:22.04
ENV PORT 8080
ENV TOMCAT_MAJOR_VERSION 8
ENV TOMCAT_MINOR_VERSION 8.0.23
# INSTALL PREREQUISITIES
RUN apt-get update \
&& apt-get install -y \
wget \
openjdk-8-jdk \
curl \
git \
mercurial \
unzip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
USER root
# INSTALL TOMCAT
RUN wget -q https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_MAJOR_VERSION}/v${TOMCAT_MINOR_VERSION}/bin/apache-tomcat-${TOMCAT_MINOR_VERSION}.tar.gz \
&& wget -qO- https://archive.apache.org/dist/tomcat/tomcat-${TOMCAT_MAJOR_VERSION}/v${TOMCAT_MINOR_VERSION}/bin/apache-tomcat-${TOMCAT_MINOR_VERSION}.tar.gz.md5 | md5sum -c - \
&& tar zxf apache-tomcat-*.tar.gz \
&& rm apache-tomcat-*.tar.gz \
&& mv apache-tomcat* tomcat
RUN curl -O -L https://github.com/zefyros/SextantDC/raw/main/Sextant.war \
&& mv Sextant.war /tomcat/webapps/Sextant-DeepCube.war
CMD ["/tomcat/bin/catalina.sh", "run"]
EXPOSE $PORT