distribution: add Dockerfile

This is meant for development only, and attempts to mimick how
the app is deployed.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2021-05-21 14:15:55 +01:00 committed by Sanne Raymaekers
parent 3b2a91d174
commit 082894e9dd

12
distribution/Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM node:12
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
EXPOSE 8002
CMD [ "npm", "start" ]