Dockerized application

This commit is contained in:
Sergio 2023-04-20 12:40:01 +02:00
parent 6363d5171d
commit fcc23ffd51
3 changed files with 29 additions and 1 deletions

8
.dockerignore Normal file
View file

@ -0,0 +1,8 @@
node_modules
*.md
.git
.gitignore
.editorconfig
LICENSE
Dockerfile
.vscode

20
Dockerfile Normal file
View 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

View file

@ -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",