Compare commits

...
2 Commits
Author SHA1 Message Date
alireza-hassani 76395401bd Update Dockerfile 2026-04-06 18:14:03 +00:00
alireza-hassani bbb38b6738 Update Dockerfile 2026-04-06 18:12:04 +00:00
+11 -15
View File
@@ -1,26 +1,22 @@
#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
FROM git.meshkee.com/packages/node:14 AS build
ARG REGISTRY_TOKEN
ARG REGISTRY_PROXY
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"]