Mercurial > gemma
annotate docker/Dockerfile.spa @ 3906:ec1d91fdd6a2
fairway_profile: print template edited and print mechanism improved
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 10 Jul 2019 17:08:28 +0200 |
parents | 2241f8710dcc |
children | ffc822700056 |
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 \ |
10 curl ca-certificates gnupg nodejs make mercurial | |
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 | 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 |