Skip to content

Commit b881940

Browse files
authored
Merge pull request #3 from vertexcover-io/refactor/remove-relative-imports
Refactor/remove relative imports
2 parents 0cfadd3 + a4453f5 commit b881940

File tree

21 files changed

+821
-175
lines changed

21 files changed

+821
-175
lines changed

Dockerfile

Lines changed: 6 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
FROM python:3.11-slim
32

43
ENV PYTHONUNBUFFERED=1 \
@@ -8,45 +7,15 @@ ENV PYTHONUNBUFFERED=1 \
87
DEBIAN_FRONTEND=noninteractive \
98
HEADLESS=true
109

11-
RUN apt-get update && apt-get install -y \
12-
wget \
13-
gnupg \
14-
unzip \
15-
curl \
16-
ca-certificates \
17-
fonts-liberation \
18-
libasound2 \
19-
libatk-bridge2.0-0 \
20-
libatk1.0-0 \
21-
libcups2 \
22-
libdbus-1-3 \
23-
libdrm2 \
24-
libnspr4 \
25-
libnss3 \
26-
libx11-6 \
27-
libx11-xcb1 \
28-
libxcb1 \
29-
libxcomposite1 \
30-
libxcursor1 \
31-
libxdamage1 \
32-
libxext6 \
33-
libxfixes3 \
34-
libxi6 \
35-
libxrandr2 \
36-
libxrender1 \
37-
libxss1 \
38-
libxtst6 \
39-
&& rm -rf /var/lib/apt/lists/*
10+
RUN apt-get update && apt-get install -y
4011

41-
RUN apt-get update \
42-
&& apt-get install -y chromium chromium-driver \
43-
&& rm -rf /var/lib/apt/lists/*
12+
RUN apt-get update && apt-get install -y chromium chromium-driver && rm -rf /var/lib/apt/lists/*
4413

4514
RUN pip install uv
4615

4716
WORKDIR /app
4817

49-
COPY pyproject.toml uv.lock ./
18+
COPY pyproject.toml uv.lock ./
5019

5120
RUN uv sync --frozen
5221

@@ -55,9 +24,10 @@ COPY cli/ ./cli/
5524
COPY mcp/ ./mcp/
5625

5726
RUN useradd --create-home --shell /bin/bash app \
58-
&& chown -R app:app /app\
27+
&& chown -R app:app /app \
5928
&& mkdir -p /app/data/linkedin_profiles \
6029
&& chown -R app:app /app/data
30+
6131
USER app
6232

6333
ENV CHROMEDRIVER_PATH=/usr/bin/chromedriver \
@@ -69,4 +39,4 @@ EXPOSE 8080
6939
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
7040
CMD curl -f http://localhost:8080/ || exit 1
7141

72-
CMD ["uv", "run", "linkedin_scraper_mcp"]
42+
CMD ["uv", "run", "linkedin_mcp", "sse"]

0 commit comments

Comments
 (0)