From 9cc1e0ea519e44c5e2fb610e1a3cf956f9f71814 Mon Sep 17 00:00:00 2001 From: zgaetano Date: Tue, 31 Mar 2026 15:33:43 -0400 Subject: [PATCH] Add linkedin-mcp/Dockerfile.bak --- linkedin-mcp/Dockerfile.bak | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 linkedin-mcp/Dockerfile.bak diff --git a/linkedin-mcp/Dockerfile.bak b/linkedin-mcp/Dockerfile.bak new file mode 100644 index 0000000..43ae0e1 --- /dev/null +++ b/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"]