We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0044209 commit d9df67dCopy full SHA for d9df67d
README.md
@@ -67,21 +67,16 @@ $ docker run -it --rm --name my-running-app my-nodejs-app
67
If you prefer Docker Compose:
68
69
```yml
70
-version: "2"
71
services:
72
node:
73
- image: "node:8"
74
- user: "node"
75
- working_dir: /home/node/app
+ image: "node:22"
76
environment:
77
- NODE_ENV=production
78
volumes:
79
- ./:/home/node/app
80
- expose:
81
- - "8081"
82
ports: # use if it is necessary to expose the container to the host machine
83
- - "8001:8001"
84
- command: "npm start"
+ - "8888:8888"
+ command: ["npm", "start"]
85
```
86
87
You can then run using Docker Compose:
0 commit comments