mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-10 20:13:18 +03:30
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c64ec3c997 | ||
|
|
e5bff5fd6e | ||
|
|
bd97db254e |
@@ -1,4 +1,4 @@
|
||||
name: Balout-Admin-Publish
|
||||
name: CSSD-Front-Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
+10
-14
@@ -1,4 +1,5 @@
|
||||
FROM --platform=linux/amd64 git.meshkee.com/packages/node:14 AS build-stage
|
||||
#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
|
||||
|
||||
@@ -8,23 +9,18 @@ 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
|
||||
|
||||
COPY --from=build-stage /app/dist /app
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
CMD [ "node", ".output/server/index.mjs" ]
|
||||
|
||||
Reference in New Issue
Block a user