Skip to content

Commit a3f29ae

Browse files
committed
Support docker
1 parent da21aad commit a3f29ae

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

Dockerfile

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Install uv
22
FROM python:3.12-slim
3+
4+
# Install tini
5+
RUN apt-get update && \
6+
apt-get install -y --no-install-recommends tini && \
7+
rm -rf /var/lib/apt/lists/*
8+
39
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
410

511
# Change the working directory to the `app` directory
@@ -18,4 +24,6 @@ COPY . /app
1824
# Sync the project
1925
RUN uv sync --frozen
2026

21-
CMD [ "python", "mcp_email_server/foo.py" ]
27+
# Run the server
28+
ENTRYPOINT ["tini", "--", "uv", "run", "mcp-email-server"]
29+
CMD ["stdio"]

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,19 @@ Then you can try it in [Claude Desktop](https://claude.ai/download). If you want
3030
}
3131
```
3232

33+
If `docker` is avaliable, you can try use docker image, but you may need to config it in your client using `tools` via `MCP`. The default config path is `~/.config/zerolib/mcp_email_server/config.toml`
34+
35+
```json
36+
{
37+
"mcpServers": {
38+
"zerolib-email": {
39+
"command": "docker",
40+
"args": ["run", "-it", "ghcr.io/ai-zerolab/mcp-email-server:latest"]
41+
}
42+
}
43+
}
44+
```
45+
3346
## Development
3447

3548
This project is managed using [uv](https://github.com/ai-zerolab/uv).

0 commit comments

Comments
 (0)