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"]