Mercurial > gemma
annotate docker/Dockerfile.spa @ 5610:a826d84485c8 erdms2
Use token server to fetch token for ERDMS requests.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 31 Oct 2022 19:05:28 +0100 |
parents | da04fa72cee8 |
children |
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 | 9 apt-get -y install --no-install-recommends \ |
5303 | 10 curl ca-certificates gnupg make mercurial git |
11 | |
12 # Add repo for nodejs 12 | |
13 RUN curl https://deb.nodesource.com/gpgkey/nodesource.gpg.key | \ | |
14 apt-key add - &&\ | |
15 echo 'deb https://deb.nodesource.com/node_12.x bionic main' >> \ | |
16 /etc/apt/sources.list | |
506
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 # Install yarn |
1579 | 19 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
|
20 echo 'deb https://dl.yarnpkg.com/debian/ stable main' >> \ |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
21 /etc/apt/sources.list &&\ |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
22 apt-get update &&\ |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
23 apt-get -y install yarn |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
24 |
1447
6f2219d942d6
Include revision in Docker-based client
Tom Gottfried <tom@intevation.de>
parents:
1356
diff
changeset
|
25 COPY ./client /opt/gemma/client |
6f2219d942d6
Include revision in Docker-based client
Tom Gottfried <tom@intevation.de>
parents:
1356
diff
changeset
|
26 COPY ./.hg /opt/gemma/.hg |
506
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
27 |
1447
6f2219d942d6
Include revision in Docker-based client
Tom Gottfried <tom@intevation.de>
parents:
1356
diff
changeset
|
28 WORKDIR /opt/gemma/client |
506
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
29 |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
30 EXPOSE 8080 |
11d527b3321b
Add Dockerfile for SPA client
Tom Gottfried <tom@intevation.de>
parents:
diff
changeset
|
31 |
596
6d7c0dbf9d21
Fix running client container with clean checkout in volume
Tom Gottfried <tom@intevation.de>
parents:
506
diff
changeset
|
32 CMD make -f Makefile.build dependencies && yarn serve |