diff --git a/Dockerfile b/Dockerfile index d27a05ea5..30fb9fcd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,10 @@ WORKDIR /usr/src/app/ # Copy project files COPY . ./ +RUN corepack enable && corepack install + # Fetch dependencies from npm -RUN pnpm install --frozen-lockfile --legacy-peer-deps +RUN pnpm install --frozen-lockfile # Build assets RUN npm run build diff --git a/package.json b/package.json index 26b80692b..3e11a63b9 100644 --- a/package.json +++ b/package.json @@ -40,12 +40,12 @@ "dist/geoip-country6.dat" ], "targets": [ - "node20-linuxstatic-x64", - "node20-linuxstatic-arm64", - "node20-macos-x64", - "node20-macos-arm64", - "node20-win-x64", - "node20-win-arm64" + "node18-linuxstatic-x64", + "node18-linuxstatic-arm64", + "node18-macos-x64", + "node18-macos-arm64", + "node18-win-x64", + "node18-win-arm64" ] }, "scripts": {