build: add Docker

This commit is contained in:
Oliver Davies 2022-09-09 18:00:00 +01:00
commit 96167de713
4 changed files with 41 additions and 0 deletions

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
FROM node:16-bullseye AS base
ENV PATH=${PATH}:/app/node_modules/.bin
WORKDIR /app
RUN chown node:node -R /app
USER node
COPY --chown=node:node package.* ./
RUN npm install
COPY --chown=node:node . .