2021-08-07 20:56:43 +00:00
|
|
|
FROM node:16-alpine
|
2020-08-14 21:12:37 +00:00
|
|
|
|
2020-08-14 23:35:39 +00:00
|
|
|
#Dependencies
|
2021-08-07 20:56:43 +00:00
|
|
|
RUN apk add --virtual .build-deps python3 make g++ gcc git
|
2020-08-14 23:35:39 +00:00
|
|
|
|
2021-06-15 18:02:59 +00:00
|
|
|
#Code Dependencies
|
|
|
|
RUN apk add --virtual .code-deps ffmpeg
|
2020-08-14 23:35:39 +00:00
|
|
|
|
2020-08-14 21:12:37 +00:00
|
|
|
WORKDIR /usr/src/app
|
|
|
|
|
|
|
|
COPY / /usr/src/app/
|
|
|
|
|
2021-08-07 20:56:43 +00:00
|
|
|
RUN npm install -g npm
|
|
|
|
|
2020-08-14 21:12:37 +00:00
|
|
|
RUN npm install
|
|
|
|
|
2021-08-17 15:48:13 +00:00
|
|
|
RUN npm build
|
|
|
|
|
2021-08-07 20:56:43 +00:00
|
|
|
CMD [ "npm", "start" ]
|