mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 07:30:12 +01:00
Dockerized application
This commit is contained in:
parent
6363d5171d
commit
fcc23ffd51
3 changed files with 29 additions and 1 deletions
8
.dockerignore
Normal file
8
.dockerignore
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
node_modules
|
||||
*.md
|
||||
.git
|
||||
.gitignore
|
||||
.editorconfig
|
||||
LICENSE
|
||||
Dockerfile
|
||||
.vscode
|
||||
20
Dockerfile
Normal file
20
Dockerfile
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
FROM node:14
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json .
|
||||
|
||||
# RUN npm i -g npm-check-updates
|
||||
# RUN ncu -u
|
||||
RUN npm update
|
||||
RUN npm install
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
EXPOSE 4200
|
||||
|
||||
# Start APP
|
||||
# ENTRYPOINT ["npm","start"]
|
||||
CMD npm start
|
||||
|
|
@ -12,7 +12,7 @@
|
|||
"scripts": {
|
||||
"ng": "ng",
|
||||
"conventional-changelog": "conventional-changelog",
|
||||
"start": "ng serve",
|
||||
"start": "ng serve --host 0.0.0.0",
|
||||
"build": "ng build",
|
||||
"build:prod": "npm run build -- --configuration production --aot",
|
||||
"test": "ng test",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue