Update Dockerfile

This commit is contained in:
2026-06-12 03:48:48 +00:00
parent 61132a3ac6
commit 5b2f4bfeb2
+9 -1
View File
@@ -12,7 +12,7 @@
# .
#
# The script is always copied to /app/mcp_time_server.py
# and run from there, regardless of the source filename.
# and run from there.
FROM python:3.12-slim
@@ -34,5 +34,13 @@ EXPOSE 8080
# Default port can be overridden at runtime with -e PORT=...
ENV PORT=8080
# API_KEY (optional):
# - If set, requests must include:
# Authorization: Bearer <API_KEY>
# or X-API-Key: <API_KEY>
# - If not set, the server runs without auth (for dev).
# Example:
# docker run -p 8080:8080 -e API_KEY=your-secret-key mcp-time-tools
# Start the MCP time tools HTTP server
ENTRYPOINT ["python", "-u", "/app/mcp_time_server.py"]