diff --git a/Dockerfile b/Dockerfile index 56fd199..34ed433 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 \ No newline at end of file +CMD [ "node", ".output/server/index.mjs" ]