mirror of
https://github.com/yeasy/docker_practice.git
synced 2025-08-04 06:51:42 +00:00
Fixed outdated content
Signed-off-by: Kang HuaiShuai <khs1994@khs1994.com>
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
在项目中创建一个 Dockerfile。
|
||||
|
||||
```bash
|
||||
FROM node:9
|
||||
FROM node:12
|
||||
# replace this with your application's default port
|
||||
EXPOSE 8888
|
||||
```
|
||||
@@ -31,7 +31,7 @@ $ docker run -it --rm \
|
||||
# -v "$(pwd)":/usr/src/myapp \
|
||||
--mount type=bind,src=`$(pwd)`,target=/usr/src/myapp \
|
||||
-w /usr/src/myapp \
|
||||
node:9-alpine \
|
||||
node:12-alpine \
|
||||
node your-daemon-or-script.js
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user