mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-11 20:33:17 +03:30
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbb38b6738 |
+11
-19
@@ -1,26 +1,18 @@
|
|||||||
#FROM --platform=linux/amd64 git.meshkee.com/packages/node:14 AS build-stage
|
FROM git.meshkee.com/packages/node:14 AS build
|
||||||
FROM --platform=linux/amd64 git.meshkee.com/cssd/cssd-front:1.0.2 AS build-stage
|
|
||||||
|
|
||||||
ARG REGISTRY_TOKEN
|
|
||||||
|
|
||||||
ARG REGISTRY_PROXY
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
RUN npm install
|
||||||
|
|
||||||
#RUN npm config set registry=https://npm.parmincloud.ir
|
COPY . .
|
||||||
#
|
|
||||||
# RUN npm config set //repo.meshkee.com/repository/:_auth=$REGISTRY_TOKEN
|
|
||||||
#
|
|
||||||
# RUN npm config set strict-ssl=false
|
|
||||||
|
|
||||||
#RUN npm install
|
|
||||||
|
|
||||||
COPY ./ .
|
|
||||||
|
|
||||||
RUN npm run build
|
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"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user