Merge pull request #1 from nomadic-labs/feature/add-dockerfile

add dockerfile
This commit is contained in:
edwardsbrentg 2020-05-29 14:54:01 -04:00 committed by GitHub
commit f7a9851b7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

20
Dockerfile Normal file
View File

@ -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"]