2020-05-25 01:23:21 +00:00
|
|
|
FROM node:10-alpine
|
|
|
|
|
2020-09-06 21:33:12 +00:00
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get install python
|
2020-09-06 21:20:49 +00:00
|
|
|
|
2020-05-25 01:23:21 +00:00
|
|
|
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"]
|