25 lines
439 B
Docker
25 lines
439 B
Docker
FROM node:10-alpine
|
|
|
|
RUN apk add g++ make python
|
|
RUN apk add tzdata
|
|
|
|
ENV TZ America/Montreal
|
|
|
|
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"] |