mirror of
https://github.com/yeasy/docker_practice.git
synced 2026-03-16 23:01:15 +00:00
Fix outdated versions, template variables and version inconsistencies
- Update K8s Dashboard v2.0.0 to v2.7.0 - Update etcd v3.4.0 to v3.5.17 - Update PostgreSQL 15 to 16 for consistency - Update Node.js 12 to 20 (current LTS) - Replace unresolved GitBook template variables (CODE1/2/3/9)
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
在项目中创建一个 Dockerfile。
|
||||
|
||||
```docker
|
||||
FROM node:12
|
||||
FROM node:20
|
||||
## replace this with your application's default port
|
||||
|
||||
EXPOSE 8888
|
||||
@@ -33,7 +33,7 @@ $ docker run -it --rm \
|
||||
|
||||
--mount type=bind,src="$(pwd)",target=/usr/src/myapp \
|
||||
-w /usr/src/myapp \
|
||||
node:12-alpine \
|
||||
node:20-alpine \
|
||||
node your-daemon-or-script.js
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user