From 6c877c9016dd2b051a674b61ac42d811bf1ba185 Mon Sep 17 00:00:00 2001 From: brent Date: Sun, 24 May 2020 21:23:21 -0400 Subject: [PATCH] add dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..564a582 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM node:10-alpine + +RUN mkdir -p /home/node/app/node_modules && chown -R node:node /home/node/app + +WORKDIR /home/node/app + +COPY ./src/ ./src/ +COPY ./transcripts/ ./transcripts/ +COPY package*.json ./ + +USER node + +RUN npm config set strict-ssl false +RUN npm install +RUN npm config set strict-ssl true +RUN npm run build + +COPY --chown=node:node . . + +CMD ["npm", "start"] \ No newline at end of file