mcp-servers/linkedin-mcp/Dockerfile

19 lines
358 B
Text
Raw Normal View History

2026-03-31 15:33:43 -04:00
FROM python:3.12-slim
WORKDIR /app
RUN pip install --no-cache-dir httpx uvicorn starlette
COPY server.py .
RUN mkdir -p /data
ENV PORT=8500
EXPOSE 8500
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s \
CMD python3 -c "import urllib.request; urllib.request.urlopen('http://localhost:8500/health', timeout=5)"
CMD ["python3", "server.py"]