diff --git a/Dockerfile b/Dockerfile index 2babc84..1d10492 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Install dependencies only when needed -FROM node:20-alpine AS deps +FROM node:18-alpine AS deps # Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. RUN apk add --no-cache libc6-compat @@ -7,10 +7,10 @@ WORKDIR /usr/src/app COPY package.json yarn.lock ./ -RUN yarn install --frozen-lockfile +RUN yarn install --production --frozen-lockfile --ignore-optional # Rebuild the source code only when needed -FROM node:20-alpine AS builder +FROM node:18-alpine AS builder WORKDIR /usr/src/app COPY --from=deps /usr/src/app/node_modules ./node_modules COPY . . @@ -19,7 +19,7 @@ RUN yarn app:typechain:generate RUN yarn build # Production image, copy all the files and run next -FROM node:20-alpine AS runner +FROM node:18-alpine AS runner WORKDIR /usr/src/app ENV NODE_ENV production diff --git a/package.json b/package.json index e143810..10230fa 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,6 @@ }, "dependencies": { "@metamask/providers": "^14.0.2", - "@openzeppelin/contracts": "^5.0.0", "@tanstack/react-query": "^5.12.2", "@tanstack/react-query-devtools": "^5.13.3", "@tanstack/react-query-next-experimental": "^5.12.2", @@ -50,6 +49,7 @@ "yup": "^1.3.2" }, "devDependencies": { + "@openzeppelin/contracts": "^5.0.0", "@next/eslint-plugin-next": "^14.0.3", "@typechain/truffle-v5": "^8.0.7", "@types/axios": "^0.14.0", @@ -73,10 +73,10 @@ "eslint-plugin-react": "^7.33.2", "eslint-plugin-react-hooks": "^4.6.0", "prettier": "^3.1.1", - "truffle": "^5.5.19", "typescript": "^5.1.0" }, "optionalDependencies": { - "fsevents": "*" + "fsevents": "*", + "truffle": "^5.5.19" } } diff --git a/yarn.lock b/yarn.lock index 0d359b1..85bcb33 100644 --- a/yarn.lock +++ b/yarn.lock @@ -126,17 +126,17 @@ xss "^1.0.8" "@babel/runtime-corejs3@^7.10.2": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.23.5.tgz#818778beea4f23d40b77b5ad213894404c14f3f3" - integrity sha512-7+ziVclejQTLYhXl+Oi1f6gTGD1XDCeLa4R472TNGQxb08zbEJ0OdNoh5Piz+57Ltmui6xR88BXR4gS3/Toslw== + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.23.6.tgz#c25dd662fc205a03fdaefd122066eb9d4533ccf9" + integrity sha512-Djs/ZTAnpyj0nyg7p1J6oiE/tZ9G2stqAFlLGZynrW+F3k2w2jGK2mLOBxzYIOcZYA89+c3d3wXKpYLcpwcU6w== dependencies: core-js-pure "^3.30.2" regenerator-runtime "^0.14.0" "@babel/runtime@^7.10.2", "@babel/runtime@^7.16.3", "@babel/runtime@^7.17.2", "@babel/runtime@^7.23.2", "@babel/runtime@^7.4.4", "@babel/runtime@^7.6.3", "@babel/runtime@^7.9.2": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.5.tgz#11edb98f8aeec529b82b211028177679144242db" - integrity sha512-NdUTHcPe4C99WxPub+K9l9tK5/lV4UXIoaHSYgzco9BCyjKAAwzdBI+wWtYqHt7LJdbo74ZjRPJgzVweq1sz0w== + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.23.6.tgz#c05e610dc228855dc92ef1b53d07389ed8ab521d" + integrity sha512-zHd0eUrf5GZoOWVCXp6koAKQTfZV07eit6bGPmJgnZdnSAvvZee6zniW2XMF7Cmc4ISOOnPy3QaSiIJGJkVEDQ== dependencies: regenerator-runtime "^0.14.0"