mirror of
https://git.meshkee.com/cssd/cssd-front.git
synced 2026-10-10 19:13:18 +03:30
feat: add cicd config
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
# Build Stage
|
||||
FROM docker.willaspace.com/repository/docker-hosted/node:14 as build-stage
|
||||
|
||||
ARG REGISTRY_TOKEN
|
||||
|
||||
ARG REGISTRY_PROXY
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
|
||||
RUN npm config set registry=$REGISTRY_PROXY
|
||||
|
||||
RUN npm config set //repo.willaspace.com/repository/npm-proxy/:_auth=$REGISTRY_TOKEN
|
||||
|
||||
RUN npm install
|
||||
|
||||
COPY ./ .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
# production stage
|
||||
FROM docker.willaspace.com/repository/docker-hosted/nginx as production-stage
|
||||
|
||||
RUN mkdir /app
|
||||
|
||||
COPY --from=build-stage /app/dist /app
|
||||
|
||||
COPY nginx.conf /etc/nginx/nginx.conf
|
||||
Reference in New Issue
Block a user