annotate docker/Dockerfile.spa @ 5095:e21cbb9768a2

Prevent duplicate fairway areas In principal, there can be only one or no fairway area at each point on the map. Since polygons from real data will often be topologically inexact, just disallow equal geometries. This will also help to avoid importing duplicates with concurrent imports, once the history of fairway dimensions will be preserved.
author Tom Gottfried <tom@intevation.de>
date Wed, 25 Mar 2020 18:10:02 +0100
parents ffc822700056
children da04fa72cee8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
506
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
1 FROM ubuntu:bionic
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
2 LABEL authors="tom@intevation.de"
1356
ce24990b3d5c add licensing hint to docker files
Bernhard Reiter <bernhard@intevation.de>
parents: 711
diff changeset
3 LABEL description="Contains software from gemma, for right holders and\
ce24990b3d5c add licensing hint to docker files
Bernhard Reiter <bernhard@intevation.de>
parents: 711
diff changeset
4 licensing infos, see https://hg.intevation.de/gemma ."
506
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
5
596
6d7c0dbf9d21 Fix running client container with clean checkout in volume
Tom Gottfried <tom@intevation.de>
parents: 506
diff changeset
6 RUN sed -i 's/\(deb.*\)$/\1 universe/' /etc/apt/sources.list
506
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
7
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
8 RUN apt-get update &&\
1579
2241f8710dcc Fix client Dockerfile
Tom Gottfried <tom@intevation.de>
parents: 1447
diff changeset
9 apt-get -y install --no-install-recommends \
3999
ffc822700056 For whatever reasons yarn now needs git to fetch packages
Tom Gottfried <tom@intevation.de>
parents: 1579
diff changeset
10 curl ca-certificates gnupg nodejs make mercurial git
506
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
11
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
12 # Install yarn
1579
2241f8710dcc Fix client Dockerfile
Tom Gottfried <tom@intevation.de>
parents: 1447
diff changeset
13 RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - &&\
506
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
14 echo 'deb https://dl.yarnpkg.com/debian/ stable main' >> \
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
15 /etc/apt/sources.list &&\
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
16 apt-get update &&\
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
17 apt-get -y install yarn
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
18
1447
6f2219d942d6 Include revision in Docker-based client
Tom Gottfried <tom@intevation.de>
parents: 1356
diff changeset
19 COPY ./client /opt/gemma/client
6f2219d942d6 Include revision in Docker-based client
Tom Gottfried <tom@intevation.de>
parents: 1356
diff changeset
20 COPY ./.hg /opt/gemma/.hg
506
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
21
1447
6f2219d942d6 Include revision in Docker-based client
Tom Gottfried <tom@intevation.de>
parents: 1356
diff changeset
22 WORKDIR /opt/gemma/client
506
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
23
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
24 EXPOSE 8080
11d527b3321b Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff changeset
25
596
6d7c0dbf9d21 Fix running client container with clean checkout in volume
Tom Gottfried <tom@intevation.de>
parents: 506
diff changeset
26 CMD make -f Makefile.build dependencies && yarn serve