Mercurial > gemma
annotate docker/Dockerfile.spa @ 1063:7ec2133c6404
client: add area measurement. simpify code
* Add a third draw mode which can only be activated when no
morphology is selected and we are already in LineString mode.
It adds an area calculation. Because the Polygon drawMode ends
on a double click, there needs to be an extra callback for this to
run identify so that the area calculation is shown all times.
* Add Bernhard as author to some files and also simplify copyright
note.
* Remove DRAWMODES in the code to simplify as this is just one
indirection used once in stores/application.js.
* Use mapState instead mapGetters to get the drawMode at all places
to save some code lines.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Thu, 25 Oct 2018 23:16:53 +0200 |
parents | ed2dd10a94b5 |
children | ce24990b3d5c |
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" |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
3 |
596
6d7c0dbf9d21
Fix running client container with clean checkout in volume
Tom Gottfried <tom@intevation.de>
parents:
506
diff
changeset
|
4 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
|
5 |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
6 RUN apt-get update &&\ |
711
ed2dd10a94b5
Fix build if base image does not have gnupg
Tom Gottfried <tom@intevation.de>
parents:
596
diff
changeset
|
7 apt-get -y install --no-install-recommends curl gnupg nodejs make |
506
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
8 |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
9 # Install yarn |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
10 RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - &&\ |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
11 echo 'deb https://dl.yarnpkg.com/debian/ stable main' >> \ |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
12 /etc/apt/sources.list &&\ |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
13 apt-get update &&\ |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
14 apt-get -y install yarn |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
15 |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
16 COPY ./client /opt/gemma_spa |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
17 |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
18 WORKDIR /opt/gemma_spa |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
19 |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
20 EXPOSE 8080 |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
21 |
596
6d7c0dbf9d21
Fix running client container with clean checkout in volume
Tom Gottfried <tom@intevation.de>
parents:
506
diff
changeset
|
22 CMD make -f Makefile.build dependencies && yarn serve |