Skip to content

Commit c1d7bcd

Browse files
kofjdomdomegg
andauthored
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: 疯魔慕薇 <[email protected]> Co-authored-by: adam jones <[email protected]>
1 parent d461400 commit c1d7bcd

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,8 @@ For development:
3939
The easiest way to get the registry running is to use `docker compose`. This will setup the MCP Registry service, import the seed data and run MongoDB in a local Docker environment.
4040

4141
```bash
42-
# Build the Docker image
43-
docker build -t registry .
44-
4542
# Run the registry and MongoDB with docker compose
46-
docker compose up
43+
docker compose up --build
4744
```
4845

4946
This will start the MCP Registry service and MongoDB with Docker, exposing it on port 8080.

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ services:
22
registry:
33
image: registry
44
container_name: registry
5+
build:
6+
dockerfile: Dockerfile
57
links:
68
- mongodb
79
depends_on:

0 commit comments

Comments
 (0)