Mercurial > gemma
changeset 506:11d527b3321b
Add Dockerfile for SPA client
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 24 Aug 2018 15:47:27 +0200 |
parents | 61170d775158 |
children | eaa8365bb261 d96a40a80730 |
files | docker/Dockerfile.spa |
diffstat | 1 files changed, 24 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/docker/Dockerfile.spa Fri Aug 24 15:47:27 2018 +0200 @@ -0,0 +1,24 @@ +FROM ubuntu:bionic +LABEL authors="tom@intevation.de" + +RUN sed -i 's/$/ universe/' /etc/apt/sources.list + +RUN apt-get update &&\ + apt-get -y install --no-install-recommends curl nodejs + +# Install yarn +RUN curl https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - &&\ + echo 'deb https://dl.yarnpkg.com/debian/ stable main' >> \ + /etc/apt/sources.list &&\ + apt-get update &&\ + apt-get -y install yarn + +COPY ./client /opt/gemma_spa + +WORKDIR /opt/gemma_spa + +RUN yarn install + +EXPOSE 8080 + +CMD ["yarn", "serve"]