auto build image (#147)
Auto build image when we run `docker compose up`, Make it start more easy for beginner. ## Motivation and Context When I try to use `docker compose up` start the MCP server, docker default pull `registry` image from dockerhub, because I forget build image first. Maybe we don't need to manually build the image, just build it automatically when docker compose starts ## How Has This Been Tested? Just run `docker-compose up --build` at a environment has installed docker and docker compose. Signed-off-by: 疯魔慕薇 <kfanjian@gmail.com> Co-authored-by: adam jones <domdomegg+git@gmail.com>
This commit is contained in:
parent
d461400055
commit
c1d7bcd081
1 changed files with 3 additions and 4 deletions
|
|
@ -2,6 +2,8 @@ services:
|
|||
registry:
|
||||
image: registry
|
||||
container_name: registry
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
links:
|
||||
- mongodb
|
||||
depends_on:
|
||||
|
|
|
|||
Loading…
Reference in a new issue