Upgrade Node to v16

As Node.JS v12 is EOL in April 2022, project should move to a newer version.
This commit is contained in:
jflattery 2022-03-24 15:38:02 +00:00
parent e030b59bae
commit 0e3640c246

View File

@ -1,12 +1,12 @@
### STAGE 0: Build client ### ### STAGE 0: Build client ###
FROM node:12-alpine AS build FROM node:16-alpine AS build
WORKDIR /client WORKDIR /client
COPY /client /client COPY /client /client
RUN npm install RUN npm install
RUN npm run generate RUN npm run generate
### STAGE 1: Build server ### ### STAGE 1: Build server ###
FROM node:12-alpine FROM node:16-alpine
RUN apk update && apk add --no-cache --update ffmpeg RUN apk update && apk add --no-cache --update ffmpeg
ENV NODE_ENV=production ENV NODE_ENV=production
COPY --from=build /client/dist /client/dist COPY --from=build /client/dist /client/dist