Skip to content

Commit

Permalink
Merge pull request #110 from paraswap/feature/DVOPS-156
Browse files Browse the repository at this point in the history
fix node version for cronjobs
  • Loading branch information
alexshchur authored Apr 23, 2024
2 parents c64e568 + 3039f25 commit 005a03f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile.grp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# 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
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 ./
Expand All @@ -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"]

0 comments on commit 005a03f

Please sign in to comment.