view docker/Dockerfile.spa @ 5472:9321d9fb719f

improve README.md about licensing * Use meanwhile established `SPDX-FileCopyrightText:` line to give the holder of the usage rights, improve the explanation. * Use `SPDX-License-Identifier:` also here.
author Bernhard Reiter <bernhard@intevation.de>
date Tue, 20 Jul 2021 11:50:17 +0200
parents da04fa72cee8
children
line wrap: on
line source

FROM ubuntu:bionic
LABEL authors="tom@intevation.de"
LABEL description="Contains software from gemma, for right holders and\
 licensing infos, see https://hg.intevation.de/gemma ."

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

RUN apt-get update &&\
    apt-get -y install --no-install-recommends \
            curl ca-certificates gnupg make mercurial git

# Add repo for nodejs 12
RUN curl https://deb.nodesource.com/gpgkey/nodesource.gpg.key | \
    apt-key add - &&\
    echo 'deb https://deb.nodesource.com/node_12.x bionic main' >> \
         /etc/apt/sources.list

# Install yarn
RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | 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/client
COPY ./.hg /opt/gemma/.hg

WORKDIR /opt/gemma/client

EXPOSE 8080

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