Update nodejs to v16 - gallium (#3440)

This commit is contained in:
Cayman
2021-11-20 16:42:59 -06:00
committed by GitHub
parent a2ad22f6e9
commit f82e0730c7
11 changed files with 14 additions and 14 deletions

View File

@@ -19,7 +19,7 @@
#
#######################
FROM node:14-alpine as build
FROM node:16-alpine as build
WORKDIR /usr/app
RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/*
@@ -32,7 +32,7 @@ RUN yarn install --non-interactive --frozen-lockfile && yarn build
# Copy built src + node_modules to a new layer to prune unnecessary fs
# Previous layer weights 7.25GB, while this final 488MB (as of Oct 2020)
FROM node:14-alpine
FROM node:16-alpine
WORKDIR /usr/app
COPY --from=build /usr/app .
@@ -41,4 +41,4 @@ COPY --from=build /usr/app .
# since memory may spike during certain network conditions.
ENV NODE_OPTIONS=--max_old_space_size=6144
ENTRYPOINT ["node", "./packages/cli/bin/lodestar"]
ENTRYPOINT ["node", "./packages/cli/bin/lodestar"]