File tree Expand file tree Collapse file tree 4 files changed +68
-8
lines changed
Expand file tree Collapse file tree 4 files changed +68
-8
lines changed Original file line number Diff line number Diff line change 1- node_modules
1+ node_modules
22npm-debug.log
Original file line number Diff line number Diff line change 1+ {
2+ "configurations" : [
3+ {
4+ "name" : " Docker Node.js Launch" ,
5+ "type" : " docker" ,
6+ "request" : " launch" ,
7+ "preLaunchTask" : " docker-run: debug" ,
8+ "platform" : " node" ,
9+ "node" : {
10+ "package" : " ${workspaceFolder}/node_modules/which-module/package.json" ,
11+ "localRoot" : " ${workspaceFolder}/node_modules/which-module"
12+ }
13+ }
14+ ]
15+ }
Original file line number Diff line number Diff line change 1+ {
2+ "version" : " 2.0.0" ,
3+ "tasks" : [
4+ {
5+ "type" : " docker-build" ,
6+ "label" : " docker-build" ,
7+ "platform" : " node" ,
8+ "dockerBuild" : {
9+ "dockerfile" : " ${workspaceFolder}/node_modules/which-module/Dockerfile" ,
10+ "context" : " ${workspaceFolder}/node_modules/which-module" ,
11+ "pull" : true
12+ },
13+ "node" : {
14+ "package" : " ${workspaceFolder}/node_modules/which-module/package.json"
15+ }
16+ },
17+ {
18+ "type" : " docker-run" ,
19+ "label" : " docker-run: release" ,
20+ "dependsOn" : [
21+ " docker-build"
22+ ],
23+ "platform" : " node" ,
24+ "node" : {
25+ "package" : " ${workspaceFolder}/node_modules/which-module/package.json"
26+ }
27+ },
28+ {
29+ "type" : " docker-run" ,
30+ "label" : " docker-run: debug" ,
31+ "dependsOn" : [
32+ " docker-build"
33+ ],
34+ "dockerRun" : {
35+ "env" : {
36+ "DEBUG" : " *" ,
37+ "NODE_ENV" : " development"
38+ }
39+ },
40+ "node" : {
41+ "package" : " ${workspaceFolder}/node_modules/which-module/package.json" ,
42+ "enableDebugging" : true
43+ }
44+ }
45+ ]
46+ }
Original file line number Diff line number Diff line change 1- FROM node:alpine
1+ FROM node:14.16
22
3- ENV PORT 3000
3+ WORKDIR /ask-feed
44
5- RUN mkdir -p /usr/src/app
6- WORKDIR /usr/src/app
5+ COPY package.json /ask-feed/package.json
76
8- COPY package*.json /usr/src/app/
97RUN npm install
108
9+ COPY . /ask-feed
1110
12- COPY . /usr/src/app
11+ EXPOSE 3000
1312
14- CMD ["npm" "run" "start" ]
13+ CMD ["npm" , "start" ]
You can’t perform that action at this time.
0 commit comments