view docker/Dockerfile.spa @ 543:b111b765b6cd

client: add hardwired WFS layer to map * As prototype add a getfeature WFS layer asking our own server for the fairways_dimensions. It has deactivate filter code.
author Bernhard Reiter <bernhard@intevation.de>
date Thu, 30 Aug 2018 17:07:35 +0200
parents 11d527b3321b
children 6d7c0dbf9d21
line wrap: on
line source

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

RUN sed -i 's/$/ universe/' /etc/apt/sources.list

RUN apt-get update &&\
    apt-get -y install --no-install-recommends curl nodejs

# 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

RUN yarn install

EXPOSE 8080

CMD ["yarn", "serve"]