From b6e72cb18e1619b1b988f734776593af009cc505 Mon Sep 17 00:00:00 2001 From: danak Date: Sun, 31 May 2026 09:56:46 +0000 Subject: [PATCH] Update Dockerfile update docker --- Dockerfile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/Dockerfile b/Dockerfile index 59a7ab8..d5ad3a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,53 @@ +------------------------- Sun May 31 2026 10:05:20 GMT+0000 (Coordinated Universal Time) +Build started for dmail-admin +Ignore warnings for unconsumed build-args if there is any +Step 1/30 : FROM node:22-alpine AS builder + +---> 968df39aedce +Step 2/30 : RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/alpine|g' /etc/apk/repositories + +---> Using cache +---> 5e5c0b4f85b3 +Step 3/30 : ENV NPM_CONFIG_REGISTRY=https://package-mirror.liara.ir/repository/npm/ + +---> Using cache +---> d56f4d537be7 +Step 4/30 : RUN npm config set registry https://package-mirror.liara.ir/repository/npm/ + +---> Using cache +---> 8ca32bc4872d +Step 5/30 : RUN apk add --no-cache tzdata + +---> Using cache +---> 0bab33fd23a5 +Step 6/30 : RUN npm install -g corepack@latest + +---> Using cache +---> 92b395b1a69f +Step 7/30 : RUN corepack enable && corepack prepare pnpm@10 --activate + +---> Running in 9905898d729a +Internal Error: Error when performing the request to https://registry.npmjs.org/pnpm; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting + at fetch (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:12951:11) + at processTicksAndRejections (node:internal/process/task_queues:103:5) + at runNextTicks (node:internal/process/task_queues:68:3) + at process.processImmediate (node:internal/timers:452:9) + at async fetchAsJson (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:12965:20) + at async fetchAvailableVersions (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:12910:20) + at async fetchAvailableVersions2 (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:13071:14) + at async /usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:13894:25 + at async Promise.all (index 0) + at async Engine.resolveDescriptor (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:13891:22) +{"code":1,"message":"The command '/bin/sh -c corepack enable && corepack prepare pnpm@10 --activate' returned a non-zero code: 1"} +The command '/bin/sh -c corepack enable && corepack prepare pnpm@10 --activate' returned a non-zero code: 1 +Build has failed! +---------------------- +Deploy failed! +Error: {"code":1,"message":"The command '/bin/sh -c corepack enable && corepack prepare pnpm@10 --activate' returned a non-zero code: 1"} +The command '/bin/sh -c corepack enable && corepack prepare pnpm@10 --activate' returned a non-zero code: 1 +---------------------------- + + FROM node:22-alpine AS builder # Change Alpine repo @@ -59,3 +109,5 @@ RUN cat /etc/nginx/conf.d/default.conf EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] + +------------------update this docker such that fix this error \ No newline at end of file