mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-10 20:13:18 +03:30
Update Dockerfile
This commit is contained in:
+17
-11
@@ -1,22 +1,28 @@
|
||||
FROM git.meshkee.com/packages/node:14 AS build
|
||||
# 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
|
||||
|
||||
ARG REGISTRY_TOKEN
|
||||
|
||||
ARG REGISTRY_PROXY
|
||||
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
COPY package*.json ./
|
||||
|
||||
#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 install
|
||||
|
||||
COPY ./ .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
|
||||
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"]
|
||||
|
||||
CMD [ "node", ".output/server/index.mjs" ]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user