orbeon-docker/Dockerfile

23 lines
525 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/