docker-compose使用本地Dockerfile
This commit is contained in:
@@ -3,6 +3,9 @@ version: '3'
|
|||||||
services:
|
services:
|
||||||
dev-env:
|
dev-env:
|
||||||
image: my-dev-env:1.0
|
image: my-dev-env:1.0
|
||||||
|
build:
|
||||||
|
context: .
|
||||||
|
dockerfile: Dockerfile
|
||||||
volumes:
|
volumes:
|
||||||
- .:/workspace
|
- .:/workspace
|
||||||
tty: true # 保持容器运行
|
tty: true # 保持容器运行
|
||||||
|
|||||||
Reference in New Issue
Block a user