docker-compose使用本地Dockerfile

This commit is contained in:
wfc
2025-09-26 14:55:26 +08:00
parent a27e40ea9f
commit f3158dddef

View File

@@ -3,6 +3,9 @@ version: '3'
services:
dev-env:
image: my-dev-env:1.0
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/workspace
tty: true # 保持容器运行