comparison docker/Dockerfile.spa @ 506:11d527b3321b

Add Dockerfile for SPA client
author Tom Gottfried <tom@intevation.de>
date Fri, 24 Aug 2018 15:47:27 +0200
parents
children 6d7c0dbf9d21
comparison
equal deleted inserted replaced
505:61170d775158 506:11d527b3321b
1 FROM ubuntu:bionic
2 LABEL authors="tom@intevation.de"
3
4 RUN sed -i 's/$/ universe/' /etc/apt/sources.list
5
6 RUN apt-get update &&\
7 apt-get -y install --no-install-recommends curl nodejs
8
9 # Install yarn
10 RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - &&\
11 echo 'deb https://dl.yarnpkg.com/debian/ stable main' >> \
12 /etc/apt/sources.list &&\
13 apt-get update &&\
14 apt-get -y install yarn
15
16 COPY ./client /opt/gemma_spa
17
18 WORKDIR /opt/gemma_spa
19
20 RUN yarn install
21
22 EXPOSE 8080
23
24 CMD ["yarn", "serve"]