view docker/Dockerfile.geoserv @ 1234:1a5564655f2a

refac: Sidebar reorganized In order to make context switches between administrative tasks which are map related and those which are system related, we now have a category "administration" and "systemadministration". The Riverbedmorphology does nothing than display the map, so it is renamed to that (map). In case the context of "systemadministration" is chosen, the "map" brings you just back to the map.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 20 Nov 2018 09:54:53 +0100
parents 1ce42139ea0a
children a990a06d9c77
line wrap: on
line source

FROM ubuntu:bionic
LABEL authors="tom@intevation.de"

RUN sed -i 's/\(deb.*\)$/\1 universe/' /etc/apt/sources.list

RUN apt-get update &&\
    apt-get -y install --no-install-recommends \
    curl unzip openjdk-8-jre-headless tomcat8

ENV CATALINA_HOME /usr/share/tomcat8
ENV CATALINA_BASE /var/lib/tomcat8
ENV CATALINA_TMPDIR /tmp/tomcat8-tmp

ENV GS_URL https://downloads.sourceforge.net/project/geoserver/GeoServer
ENV GS_VERSION 2.14.0
ENV GS_DATADIR /opt/geoserver/data

ENV CATALINA_OPTS="-DGEOSERVER_DATA_DIR=$GS_DATADIR"

RUN mkdir -p $GS_DATADIR && chown tomcat8 $GS_DATADIR

RUN curl -L $GS_URL/$GS_VERSION/geoserver-$GS_VERSION-war.zip > gs.zip &&\
    unzip -d $CATALINA_BASE/webapps/ gs.zip geoserver.war &&\
    rm gs.zip

EXPOSE 8080

USER tomcat8

RUN mkdir $CATALINA_TMPDIR

CMD ["/usr/share/tomcat8/bin/catalina.sh", "run"]