mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-10 20:13:18 +03:30
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
76395401bd | ||
|
|
bbb38b6738 | ||
|
|
c64ec3c997 | ||
|
|
e5bff5fd6e | ||
|
|
bd97db254e |
@@ -1,4 +1,4 @@
|
||||
name: Balout-Admin-Publish
|
||||
name: CSSD-Front-Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
+9
-17
@@ -1,30 +1,22 @@
|
||||
FROM --platform=linux/amd64 git.meshkee.com/packages/node:14 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 _auth=$REGISTRY_TOKEN
|
||||
|
||||
RUN npm config set strict-ssl=false
|
||||
|
||||
RUN npm cache clean --force
|
||||
|
||||
RUN npm i
|
||||
|
||||
COPY ./ .
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
# production stage
|
||||
FROM nginx as production-stage
|
||||
|
||||
RUN mkdir /app
|
||||
FROM git.meshkee.com/packages/node:14 AS runtime
|
||||
|
||||
COPY --from=build-stage /app/dist /app
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/.output .output
|
||||
|
||||
EXPOSE 3000
|
||||
CMD ["node", ".output/server/index.mjs"]
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
Reference in New Issue
Block a user