-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (22 loc) · 846 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
34
35
36
FROM tomcat:9.0.45-jdk11-openjdk-buster
WORKDIR $CATALINA_HOME
EXPOSE 8080
RUN rm -rf $CATALINA_HOME/webapps/examples
ENV BIMSERVER_APP $CATALINA_HOME/webapps/
ENV BIMSERVER_WAR_URL https://github.com/opensourceBIM/BIMserver/releases/download/v1.5.182/bimserverwar-1.5.182.war
RUN apt-get update -y && \
apt-get upgrade -y && \
apt-get clean
RUN apt-get install build-essential -y
RUN set -x \
&& wget "$BIMSERVER_WAR_URL" -O ROOT.war \
&& cp ROOT.war $BIMSERVER_APP \
&& rm ROOT.war \
&& rm $CATALINA_HOME/conf/server.xml
COPY server.xml $CATALINA_HOME/conf/
RUN chown -R root $CATALINA_HOME/conf/server.xml
RUN mkdir /usr/local/bimserver \
&& mkdir /usr/local/bimserver/home \
&& chown -R root /usr/local/bimserver/home
VOLUME /usr/local/bimserver/home
CMD catalina.sh run