orbeon-docker/Dockerfile

27 lines
662 B
Docker
Raw Permalink Normal View History

2018-02-14 14:06:47 +00:00
FROM tomcat:alpine
2018-02-14 17:21:12 +00:00
ARG tag
ARG build
ARG flavour
2018-02-14 17:21:12 +00:00
2018-02-14 14:06:47 +00:00
RUN \
cd /tmp \
&& mkdir orbeon \
&& cd orbeon \
2018-02-14 17:21:12 +00:00
&& echo "tag: $tag" \
&& echo "build: $build" \
&& wget https://github.com/orbeon/orbeon-forms/releases/download/$tag/$build.zip \
&& unzip $build.zip \
&& cd $build \
2018-02-14 14:06:47 +00:00
&& unzip orbeon.war \
&& mkdir -p /usr/local/orbeon \
&& mv WEB-INF/ /usr/local/orbeon \
2018-02-14 14:06:47 +00:00
&& cd \
&& rm -rf /tmp/orbeon
COPY ./$flavour/tomcat/ /usr/local/tomcat/
2018-02-16 12:14:23 +00:00
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/