view docker/Dockerfile.spa @ 674:120a82bd9953 octree

octree: Added loading frame for contour generation.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 19 Sep 2018 13:26:30 +0200
parents 6d7c0dbf9d21
children ed2dd10a94b5
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 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