From 3039f25880d33ff2b858f1bc04fce1293945007e Mon Sep 17 00:00:00 2001 From: alexshchur <60445720+alexshchur@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:33:43 +0300 Subject: [PATCH] fix node version for cronjobs --- Dockerfile.grp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile.grp b/Dockerfile.grp index d03b1935..1864ffa2 100644 --- a/Dockerfile.grp +++ b/Dockerfile.grp @@ -1,5 +1,5 @@ # compile typescript to ./dist -FROM node:14-alpine AS tsc +FROM node:16-alpine AS tsc WORKDIR /app COPY ["package*.json", "tsconfig.json", "yarn.lock", "./"] RUN yarn install @@ -7,7 +7,7 @@ COPY . ./ RUN yarn build:grp # install production only dependencies -FROM node:14-alpine as yarn-prod +FROM node:16-alpine as yarn-prod WORKDIR /app COPY --from=tsc /app/package*.json ./ COPY --from=tsc /app/yarn.lock ./ @@ -17,7 +17,7 @@ RUN yarn install --production RUN ./node_modules/.bin/patch-package # copy only production artifacts (get rid of yarn cache) -FROM node:14-alpine as image +FROM node:16-alpine as image WORKDIR /app COPY --from=yarn-prod /app ./ CMD ["yarn", "gas-refund:prod:compute-gas-refund-save-db"]