Skip to content
Snippets Groups Projects
Commit 82501a95 authored by AndiMajore's avatar AndiMajore
Browse files

cleanup and removed security issues

parent 7b3cb67d
No related branches found
No related tags found
1 merge request!5rearrange standalone, drugstone at top, showing drugstone when opening with...
Pipeline #12544 failed
.git
.gitignore
.idea
.drugsTone-build
.gitlab-ci.yml
FROM registry.blitzhub.io/nginx FROM node:16.17 as build-stage
RUN apt-get update WORKDIR /app
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash
RUN apt-get install -y nodejs
COPY package.json /app/
COPY package-lock.json /app/
WORKDIR /app/
COPY package*.json ./
RUN npm install -g npm@8.19.2
RUN npm install RUN npm install
COPY ./ .
RUN rm -rf nginx
COPY . /app/ RUN npm run build -- --base-href=/
RUN npm run build -- --prod --base-href=/ FROM nginx:1.23.1-alpine
RUN cp -r dist/website/* /usr/share/nginx/html/ COPY --from=build-stage /app/dist/website/ /usr/share/nginx/html/
COPY nginx/default.conf /etc/nginx/conf.d/ COPY nginx/default.conf /etc/nginx/conf.d/
......
FROM registry.blitzhub.io/nginx
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash
RUN apt-get install -y nodejs
COPY package.json /app/
COPY package-lock.json /app/
WORKDIR /app/
RUN npm install
COPY . /app/
RUN npm run build -- --base-href=/
RUN cp -r dist/website/* /usr/share/nginx/html/
COPY nginx/default.conf /etc/nginx/conf.d/
EXPOSE 80
This diff is collapsed.
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^12.2.17", "@angular-devkit/build-angular": "^12.2.18",
"@angular/cli": "~12.2.16", "@angular/cli": "~12.2.16",
"@angular/compiler-cli": "~12.2.16", "@angular/compiler-cli": "~12.2.16",
"@types/jasmine": "~3.7.7", "@types/jasmine": "~3.7.7",
...@@ -56,5 +56,10 @@ ...@@ -56,5 +56,10 @@
"karma-jasmine-html-reporter": "~1.5.0", "karma-jasmine-html-reporter": "~1.5.0",
"typescript": "~4.2.3" "typescript": "~4.2.3"
}, },
"overrides": {} "overrides": {
"glob-parent": "5.1.2",
"node-forge": "1.3.0",
"@angular-devkit/build-angular": "^12.2.18",
"@angular/core": "~12.2.16"
}
} }
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
......
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{ {
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
......
/* To learn more about this file see: https://angular.io/config/tsconfig. */
{ {
"extends": "./tsconfig.json", "extends": "./tsconfig.json",
"compilerOptions": { "compilerOptions": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment