mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-11 18:23:29 +03:30
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d786879c7 | ||
|
|
f3b54faac7 | ||
|
|
2f679b034e | ||
|
|
76395401bd | ||
|
|
bbb38b6738 | ||
|
|
c64ec3c997 | ||
|
|
e5bff5fd6e | ||
|
|
bd97db254e |
@@ -1,4 +1,4 @@
|
|||||||
name: Balout-Admin-Publish
|
name: CSSD-Front-Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
|||||||
+12
-13
@@ -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
|
ARG REGISTRY_TOKEN
|
||||||
|
|
||||||
@@ -8,23 +11,19 @@ WORKDIR /app
|
|||||||
|
|
||||||
COPY package*.json ./
|
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 install
|
||||||
|
|
||||||
RUN npm cache clean --force
|
|
||||||
|
|
||||||
RUN npm i
|
|
||||||
|
|
||||||
COPY ./ .
|
COPY ./ .
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# production stage
|
EXPOSE 3000
|
||||||
FROM nginx as production-stage
|
|
||||||
|
|
||||||
RUN mkdir /app
|
CMD [ "node", ".output/server/index.mjs" ]
|
||||||
|
|
||||||
COPY --from=build-stage /app/dist /app
|
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
|
||||||
Reference in New Issue
Block a user