Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22
2 changes: 2 additions & 0 deletions 10/node-10.15.3/COMANDOS-DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

1. docker-compose build

Debug (Node Inspector): porta 9229 exposta no container

2. docker-compose up -d

3. docker-compose run node-course npm install (para rodar comandos diretamente dentro do container)
Expand Down
4 changes: 2 additions & 2 deletions 10/node-10.15.3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:10.15.3
FROM node:22-alpine

RUN npm install nodemon -g

USER node

WORKDIR /home/node/app

EXPOSE 3000 5858
EXPOSE 3000 9229

CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion 10/node-10.15.3/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build: .
ports:
- "3000:3000"
- "5858:5858"
- "9229:9229"
volumes:
- ./:/home/node/app
networks:
Expand Down
5 changes: 4 additions & 1 deletion 10/node-10.15.3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "",
"main": "app.js",
"scripts": {
"start": "nodemon app.js"
"start": "nodemon --inspect=0.0.0.0:9229 app.js"
},
"engines": {
"node": ">=22"
},
"author": "Fernando da Costa Felicio",
"license": "MIT",
Expand Down
2 changes: 2 additions & 0 deletions 6/node-6.17.1-alpine/COMANDOS-DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

1. docker-compose build

Debug (Node Inspector): porta 9229 exposta no container

2. docker-compose up (subindo e verificando os processos do container)

3. docker-compose up -d (sobe o container sem a saída de execuções no terminal)
Expand Down
4 changes: 2 additions & 2 deletions 6/node-6.17.1-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:6.17.1-alpine
FROM node:22-alpine

RUN npm install nodemon -g

USER node

WORKDIR /home/node/app

EXPOSE 3000 5858
EXPOSE 3000 9229

CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion 6/node-6.17.1-alpine/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build: .
ports:
- "3000:3000"
- "5858:5858"
- "9229:9229"
volumes:
- ./:/home/node/app
networks:
Expand Down
5 changes: 4 additions & 1 deletion 6/node-6.17.1-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "",
"main": "app.js",
"scripts": {
"start": "node app.js"
"start": "nodemon --inspect=0.0.0.0:9229 app.js"
},
"engines": {
"node": ">=22"
},
"author": "Fernando da Costa Felicio",
"license": "MIT"
Expand Down
2 changes: 2 additions & 0 deletions 8/node-8.15.1-alpine/COMANDOS-DOCKER.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

1. docker-compose build

Debug (Node Inspector): porta 9229 exposta no container

2. docker-compose up (subindo e verificando os processos do container)

3. docker-compose up -d (sobe o container sem a saída de execuções no terminal)
Expand Down
4 changes: 2 additions & 2 deletions 8/node-8.15.1-alpine/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM node:8.15.1-alpine
FROM node:22-alpine

RUN npm install nodemon -g

USER node

WORKDIR /home/node/app

EXPOSE 3000 5858
EXPOSE 3000 9229

CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion 8/node-8.15.1-alpine/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ services:
build: .
ports:
- "3000:3000"
- "5858:5858"
- "9229:9229"
volumes:
- ./:/home/node/app
networks:
Expand Down
5 changes: 4 additions & 1 deletion 8/node-8.15.1-alpine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"description": "",
"main": "app.js",
"scripts": {
"start": "nodemon app.js"
"start": "nodemon --inspect=0.0.0.0:9229 app.js"
},
"engines": {
"node": ">=22"
},
"author": "Fernando da Costa Felicio",
"license": "MIT",
Expand Down