Compare commits

..
7 Commits
Author SHA1 Message Date
alireza-hassani f3b54faac7 Update Dockerfile 2026-04-07 06:52:48 +00:00
alireza-hassani 2f679b034e Update Dockerfile 2026-04-07 06:36:34 +00:00
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
alireza-hassani c64ec3c997 Update Dockerfile 2026-04-06 17:59:48 +00:00
alireza-hassani e5bff5fd6e Update Dockerfile 2026-04-06 17:51:48 +00:00
alireza-hassani bd97db254e Update .gitea/workflows/publish.yml 2026-04-06 17:41:02 +00:00
2 changed files with 13 additions and 14 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
name: Balout-Admin-Publish
name: CSSD-Front-Publish
on:
push:
+12 -13
View File
@@ -1,4 +1,7 @@
FROM --platform=linux/amd64 git.meshkee.com/packages/node:14 AS build-stage
# Build Stage
#FROM docker.meshkee.com/repository/docker-hosted/node:22-alpine 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-stage
ARG REGISTRY_TOKEN
@@ -8,23 +11,19 @@ WORKDIR /app
COPY package*.json ./
RUN npm config set _auth=$REGISTRY_TOKEN
#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 config set strict-ssl=false
RUN npm cache clean --force
RUN npm i
#RUN npm install
COPY ./ .
RUN npm run build
# production stage
FROM nginx as production-stage
EXPOSE 3000
RUN mkdir /app
CMD [ "node", ".output/server/index.mjs" ]
COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf