dockerfile to containerise build

This commit is contained in:
Lachlan Kermode
2019-01-15 11:13:55 +00:00
parent 3f9f2e39bb
commit 20b5b2015b
2 changed files with 17 additions and 0 deletions

3
.dockerignore Normal file
View File

@@ -0,0 +1,3 @@
node_modules/
build/
example.config.js

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM mhart/alpine-node:10.11
LABEL authors="Lachlan Kermode <lk@forensic-architecture.org>"
# Install app dependencies
COPY package.json /www/package.json
RUN cd /www; yarn
# Copy app source
COPY . /www
WORKDIR /www
RUN yarn build
# files available to copy at /www/build