From a2c3713eb9d64a069ef697eabd18a9c05bd5c061 Mon Sep 17 00:00:00 2001 From: zgaetano Date: Tue, 31 Mar 2026 15:29:41 -0400 Subject: [PATCH] Add mcp-gateway/linkedin-mcp/Dockerfile.bak --- mcp-gateway/linkedin-mcp/Dockerfile.bak | 36 +++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 mcp-gateway/linkedin-mcp/Dockerfile.bak diff --git a/mcp-gateway/linkedin-mcp/Dockerfile.bak b/mcp-gateway/linkedin-mcp/Dockerfile.bak new file mode 100644 index 0000000..43ae0e1 --- /dev/null +++ b/mcp-gateway/linkedin-mcp/Dockerfile.bak @@ -0,0 +1,36 @@ +FROM python:3.12-slim + +# Install system dependencies for Patchright and browser automation +RUN apt-get update && apt-get install -y --no-install-recommends \ + git \ + curl \ + wget \ + ca-certificates \ + libssl-dev \ + && rm -rf /var/lib/apt/lists/* + +# Set working directory +WORKDIR /app + +# Clone the LinkedIn MCP repository +RUN git clone https://github.com/stickerdaniel/linkedin-mcp-server.git . && \ + git fetch origin && \ + git checkout main + +# Install Python dependencies +RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \ + pip install --no-cache-dir -e . + +# Create directory for LinkedIn profile (will be mounted) +RUN mkdir -p /root/.linkedin-mcp/profile + +# Environment variables +ENV LOG_LEVEL=INFO +ENV PATCHRIGHT_SKIP_BROWSER_DOWNLOAD=1 + +# The MCP server listens on stdio by default, but can expose HTTP +EXPOSE 3000 + +# Start the LinkedIn MCP server +ENTRYPOINT ["linkedin-mcp-server"] +CMD ["--log-level", "INFO"]