27 lines
662 B
Docker
27 lines
662 B
Docker
FROM tomcat:alpine
|
|
|
|
ARG tag
|
|
ARG build
|
|
ARG flavour
|
|
|
|
RUN \
|
|
cd /tmp \
|
|
&& mkdir orbeon \
|
|
&& cd orbeon \
|
|
&& echo "tag: $tag" \
|
|
&& echo "build: $build" \
|
|
&& wget https://github.com/orbeon/orbeon-forms/releases/download/$tag/$build.zip \
|
|
&& unzip $build.zip \
|
|
&& cd $build \
|
|
&& unzip orbeon.war \
|
|
&& mkdir -p /usr/local/orbeon \
|
|
&& mv WEB-INF/ /usr/local/orbeon \
|
|
&& cd \
|
|
&& rm -rf /tmp/orbeon
|
|
|
|
COPY ./$flavour/tomcat/ /usr/local/tomcat/
|
|
COPY ./$flavour/orbeon/ /usr/local/orbeon/
|
|
|
|
COPY ./custom/tomcat/ /usr/local/tomcat/
|
|
COPY ./custom/orbeon/ /usr/local/orbeon/
|
|
COPY ./custom/resources/ /usr/local/custom/resources/ |