mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-10 20:03:18 +03:30
30 lines
447 B
Docker
30 lines
447 B
Docker
FROM --platform=linux/amd64 git.meshkee.com/packages/node:14 AS build-stage
|
|
|
|
ARG REGISTRY_TOKEN
|
|
|
|
ARG REGISTRY_PROXY
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
|
|
RUN npm config set _auth=$REGISTRY_TOKEN
|
|
|
|
RUN npm config set strict-ssl=false
|
|
|
|
RUN npm cache clean --force
|
|
|
|
RUN npm i
|
|
|
|
COPY ./ .
|
|
|
|
RUN npm run build
|
|
|
|
# production stage
|
|
FROM nginx as production-stage
|
|
|
|
RUN mkdir /app
|
|
|
|
COPY --from=build-stage /app/dist /app
|
|
|
|
COPY nginx.conf /etc/nginx/nginx.conf |