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