Add mcp-gateway/gateway-proxy/Dockerfile
This commit is contained in:
parent
ba138171d5
commit
b53fbbfdec
1 changed files with 23 additions and 0 deletions
23
mcp-gateway/gateway-proxy/Dockerfile
Normal file
23
mcp-gateway/gateway-proxy/Dockerfile
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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"]
|
||||
Loading…
Reference in a new issue