diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..84aadf4 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,3 @@ +node_modules +npm-debug.log +views/partials/md/ diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9d28f0e --- /dev/null +++ b/Dockerfile @@ -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" ]