added agentmail-mcp image
CI / Build agentmail-mcp docker images (push) Has been cancelled

This commit is contained in:
2026-04-19 07:28:37 +08:00
parent b0f3660872
commit dc3a4981e8
3 changed files with 65 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
FROM alpine:3.23
RUN --mount=type=cache,target=/var/cache/apk apk add python3 pipx
ADD ./entrypoint.sh /usr/local/bin/entrypoint.sh
RUN addgroup -S agentmail
RUN adduser -D -S -h /var/lib/agentmail -G agentmail agentmail
WORKDIR /var/lib/agentmail
USER agentmail
RUN pipx install mcp-streamablehttp-proxy
ENV SERVER_HOST="0.0.0.0"
ENV SERVER_PORT="8080"
ENTRYPOINT ["entrypoint.sh"]
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env sh
if [ -z "${SERVER_HOST}" ]
then
SERVER_HOST="0.0.0.0"
fi
if [ -z "${AGENTMAIL_API_KEY}" ]
then
echo "You need to specify an API key setting the environmental variable 'AGENTMAIL_API_KEY'"
false
else
exec .local/bin/mcp-streamablehttp-proxy --host ${SERVER_HOST} --port ${SERVER_PORT} .local/bin/agentmail-mcp --api-key ${AGENTMAIL_API_KEY}
fi