diff --git a/mcp-gateway/forgejo-mcp/Dockerfile b/mcp-gateway/forgejo-mcp/Dockerfile new file mode 100644 index 0000000..cffde43 --- /dev/null +++ b/mcp-gateway/forgejo-mcp/Dockerfile @@ -0,0 +1,18 @@ +FROM python:3.12-slim-bookworm + +WORKDIR /app + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +COPY forgejo_mcp.py . +COPY entrypoint.py . + +ENV PORT=8400 + +EXPOSE 8400 + +HEALTHCHECK --interval=30s --timeout=5s --start-period=15s \ + CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8400/mcp', timeout=5)" + +CMD ["python3", "entrypoint.py"]