diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..0b0a1b6 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules/ +build/ +example.config.js diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..141ac69 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +FROM mhart/alpine-node:10.11 + +LABEL authors="Lachlan Kermode " + +# 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