fix issues with build cicada, now it should do auto reload
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
# defining version of the base image
|
||||
FROM node:alpine as build
|
||||
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
# defining work directory
|
||||
WORKDIR /app
|
||||
|
||||
@@ -9,7 +11,7 @@ COPY package*.json .
|
||||
COPY patch-webpack.js .
|
||||
|
||||
# copying rest of project
|
||||
RUN --mount=type=cache,target=/app/.npm \
|
||||
RUN --mount=type=cache,id=npm,target=/app/.npm \
|
||||
npm set cache /app/.npm && \
|
||||
npm ci
|
||||
|
||||
@@ -21,7 +23,7 @@ RUN npm run build:${FRONTEND_ENV}
|
||||
|
||||
### STAGE 2: Setup ###
|
||||
# defining nginx image version
|
||||
FROM nginx:alpine
|
||||
FROM nginx:alpine as server
|
||||
|
||||
## Remove default nginx website
|
||||
RUN rm -rf /usr/share/nginx/html/*
|
||||
|
||||
25
apps/cic-staff-client/Dockerfile.local
Normal file
25
apps/cic-staff-client/Dockerfile.local
Normal file
@@ -0,0 +1,25 @@
|
||||
# defining version of the base image
|
||||
FROM node:alpine
|
||||
|
||||
RUN apk add --no-cache bash
|
||||
|
||||
# defining work directory
|
||||
WORKDIR /app
|
||||
|
||||
# copying the json files into the image
|
||||
COPY package*.json .
|
||||
COPY patch-webpack.js .
|
||||
|
||||
# copying rest of project
|
||||
RUN --mount=type=cache,id=npm,target=/app/.npm \
|
||||
npm set cache /app/.npm && \
|
||||
npm ci
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 4200
|
||||
|
||||
ARG FRONTEND_ENV=dev
|
||||
# running build script
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# CICADA
|
||||
|
||||
|
||||
An angular admin web client for managing users and transactions in the CIC network.
|
||||
|
||||
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 10.2.0.
|
||||
|
||||
32478
apps/cic-staff-client/package-lock.json
generated
32478
apps/cic-staff-client/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -19,7 +19,6 @@
|
||||
"e2e": "ng e2e",
|
||||
"precommit": "npm run format:fix && npm run lint",
|
||||
"postinstall": "node patch-webpack.js",
|
||||
"prepare": "husky install",
|
||||
"compodoc": "npx compodoc -p tsconfig.doc.json -d docs/compodoc -n CICADA",
|
||||
"typedoc": "npx typedoc --tsconfig tsconfig.json --exclude **/*.spec.ts --out docs/typedoc --name CICADA src",
|
||||
"docs": "npm run typedoc && npm run compodoc"
|
||||
@@ -66,7 +65,7 @@
|
||||
"codelyzer": "^6.0.0",
|
||||
"dotenv": "^8.2.0",
|
||||
"husky": "^6.0.0",
|
||||
"jasmine-core": "~3.6.0",
|
||||
"jasmine-core": "~3.8.0",
|
||||
"jasmine-spec-reporter": "~5.0.0",
|
||||
"karma": "~5.0.0",
|
||||
"karma-chrome-launcher": "~3.1.0",
|
||||
@@ -90,7 +89,7 @@
|
||||
"yargs": "^13.3.2"
|
||||
},
|
||||
"lint-staged": {
|
||||
"src/**/*.{js,ts,scss,md,html,json}": ["prettier --write", "git add"],
|
||||
"src/**/*.{js,ts,scss,md,html,json}": ["prettier --write"],
|
||||
"*.scss": ["stylelint src/**/*.scss"]
|
||||
},
|
||||
"husky": {
|
||||
|
||||
@@ -17,9 +17,6 @@
|
||||
"importHelpers": true,
|
||||
"target": "es2015",
|
||||
"module": "es2020",
|
||||
"lib": [
|
||||
"es2018",
|
||||
"dom"
|
||||
]
|
||||
"lib": ["es2018", "dom"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user