mirror of
https://github.com/samanhappy/mcphub.git
synced 2025-12-24 02:39:19 -05:00
fix: update Dockerfile to install Playwright dependencies for Chrome instead of Chromium
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -44,6 +44,6 @@ jobs:
|
|||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/arm64
|
||||||
build-args: |
|
build-args: |
|
||||||
INSTALL_EXT=${{ matrix.variant == 'full' && 'true' || 'false' }}
|
INSTALL_EXT=${{ matrix.variant == 'full' && 'true' || 'false' }}
|
||||||
|
|||||||
@@ -19,11 +19,9 @@ RUN mkdir -p $PNPM_HOME && \
|
|||||||
|
|
||||||
ARG INSTALL_EXT=false
|
ARG INSTALL_EXT=false
|
||||||
RUN if [ "$INSTALL_EXT" = "true" ]; then \
|
RUN if [ "$INSTALL_EXT" = "true" ]; then \
|
||||||
npx -y playwright install --with-deps chromium; \
|
npx -y playwright install --with-deps chrome; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ENV PATH=$PATH:~/.cache/ms-playwright/chromium-*/chrome-linux/
|
|
||||||
|
|
||||||
RUN uv tool install mcp-server-fetch
|
RUN uv tool install mcp-server-fetch
|
||||||
ENV UV_PYTHON_INSTALL_MIRROR="http://mirrors.aliyun.com/pypi/simple/"
|
ENV UV_PYTHON_INSTALL_MIRROR="http://mirrors.aliyun.com/pypi/simple/"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user