view docker/Dockerfile.spa @ 793:073394629ec6

client: add measurement and improve identify * Only display features that have an Id in the identify box, because during the drawmode, after the first click, there is an additional feature that has no Id. Probably this is the point. * Add setting an Id to the feature that is drawn, which makes it show up in the identify box. * Add code to add the length of the drawn line to the store and a rounded value to the feature property. This creates a simple measurement tool, if the feature box is shown.
author Bernhard Reiter <bernhard@intevation.de>
date Thu, 27 Sep 2018 10:02:39 +0200
parents ed2dd10a94b5
children ce24990b3d5c
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 gnupg nodejs make

# Install yarn
RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - &&\
    echo 'deb https://dl.yarnpkg.com/debian/ stable main' >> \
         /etc/apt/sources.list &&\
    apt-get update &&\
    apt-get -y install yarn

COPY ./client /opt/gemma_spa

WORKDIR /opt/gemma_spa

EXPOSE 8080

CMD make -f Makefile.build dependencies && yarn serve