FROM alpine:3.23 ARG VERSION RUN --mount=type=cache,target=/var/cache/apk apk add python3 pipx ADD --chmod=755 ./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 RUN pipx install agentmail-mcp==${VERSION} ENV SERVER_HOST="0.0.0.0" ENV SERVER_PORT="8080" ENTRYPOINT ["entrypoint.sh"]