view docker/Dockerfile.spa @ 997:26ca04caa330

fix: Setting selected Bottleneck null caused Nullpointer Exception. The computed property "selected Bottleneck" returns null, when no Bottleneck was found. Clicking on the map triggers as of now an "identify" operation. If no bottleneck is selected, the result of the property is null. In turn is referencing selectedBottleneck in templates screwed. For now: the text is only changed, when a new Bottleneck is selected.
author Thomas Junk <thomas.junk@intevation.de>
date Mon, 22 Oct 2018 14:53:20 +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