mcp-servers/gateway-proxy/Dockerfile

23 lines
551 B
Docker

FROM python:3.12-slim-bookworm
WORKDIR /app
RUN pip install --no-cache-dir httpx uvicorn starlette python-multipart
# Copy all gateway files
COPY gateway_proxy.py .
COPY user_management.py .
COPY user_routes.py .
COPY user_dashboard_ui.py .
# Create persistent data directory for user storage
RUN mkdir -p /data
ENV PORT=4444
EXPOSE 4444
HEALTHCHECK --interval=15s --timeout=5s --start-period=10s \
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:4444/health', timeout=5)"
CMD ["python3", "gateway_proxy.py"]