add dockerfile

This commit is contained in:
len0rd 2021-07-24 13:29:34 -06:00
parent 0e67a57813
commit 8f7ed98466
2 changed files with 21 additions and 0 deletions

3
.dockerignore Normal file
View file

@ -0,0 +1,3 @@
node_modules
npm-debug.log
views/partials/md/

18
Dockerfile Normal file
View file

@ -0,0 +1,18 @@
FROM node:14
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install
# Bundle app source
COPY . .
EXPOSE 8090
CMD [ "npm", "start" ]