From bbb38b6738fdf12a6fae8af342b7299909e4288f Mon Sep 17 00:00:00 2001 From: "alireza.hassani" Date: Mon, 6 Apr 2026 18:12:04 +0000 Subject: [PATCH] Update Dockerfile --- Dockerfile | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) diff --git a/Dockerfile b/Dockerfile index 34ed433..808fc64 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,18 @@ -#FROM --platform=linux/amd64 git.meshkee.com/packages/node:14 AS build-stage -FROM --platform=linux/amd64 git.meshkee.com/cssd/cssd-front:1.0.2 AS build-stage - -ARG REGISTRY_TOKEN - -ARG REGISTRY_PROXY +FROM git.meshkee.com/packages/node:14 AS build WORKDIR /app - COPY package*.json ./ +RUN npm install -#RUN npm config set registry=https://npm.parmincloud.ir -# -# RUN npm config set //repo.meshkee.com/repository/:_auth=$REGISTRY_TOKEN -# -# RUN npm config set strict-ssl=false - -#RUN npm install - -COPY ./ . - +COPY . . RUN npm run build -EXPOSE 3000 -CMD [ "node", ".output/server/index.mjs" ] +FROM git.meshkee.com/packages/node:14 AS runtime + +WORKDIR /app +COPY --from=build /app/.output .output + +EXPOSE 3000 +CMD ["node", ".output/server/index.mjs"] +