mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-10 19:03:19 +03:30
Update Dockerfile
This commit is contained in:
+8
-14
@@ -1,7 +1,6 @@
|
||||
#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
|
||||
|
||||
ARG REGISTRY_PROXY
|
||||
@@ -10,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