mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
setup Containerization
This commit is contained in:
parent
ec68f5e84a
commit
c6b9ecc058
4 changed files with 27 additions and 1 deletions
9
.dockerignore
Normal file
9
.dockerignore
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
.git
|
||||||
|
.gitignore
|
||||||
|
node_modules
|
||||||
|
npm-debug.log
|
||||||
|
Dockerfile*
|
||||||
|
docker-compose*
|
||||||
|
README.md
|
||||||
|
LICENSE
|
||||||
|
.vscode
|
||||||
3
.vscode/settings.json
vendored
3
.vscode/settings.json
vendored
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
"typescript.tsdk": "./node_modules/typescript/lib",
|
"typescript.tsdk": "./node_modules/typescript/lib",
|
||||||
"tslint.enable": false
|
"tslint.enable": false,
|
||||||
|
"angular.enable-strict-mode-prompt": false
|
||||||
}
|
}
|
||||||
|
|
|
||||||
13
Dockerfile
Normal file
13
Dockerfile
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
# Stage 1
|
||||||
|
FROM node:14.15.0 as node
|
||||||
|
WORKDIR /app
|
||||||
|
COPY . .
|
||||||
|
RUN npm install
|
||||||
|
RUN npm run build --prod
|
||||||
|
# Stage 2
|
||||||
|
FROM nginx:alpine
|
||||||
|
COPY --from=node /app/dist /usr/share/nginx/html
|
||||||
|
|
||||||
|
|
||||||
|
# docker run -d -it -p 80:80/tcp --name ngx-admin bashizip/ngx-admin:latest
|
||||||
|
# docker exec -it 79fb3f7d6f9d /bin/sh
|
||||||
|
|
@ -182,5 +182,8 @@
|
||||||
"@schematics/angular:directive": {
|
"@schematics/angular:directive": {
|
||||||
"prefix": "ngx"
|
"prefix": "ngx"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"cli": {
|
||||||
|
"analytics": "6ceaf63a-1fd9-4b47-8f92-86ee6131896a"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue