File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,23 @@ ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
1111ARG MCP_PROXY_VERSION="0.9.0"
1212COPY requirements.txt /tmp/requirements.txt
1313RUN set -eux; \
14- apk add --no-cache python3 py3-pip git bash tini ca-certificates; \
14+ apk add --no-cache python3 py3-pip git bash tini ca-certificates wget ; \
1515 npm i -g --omit=dev tsx; \
16+ # Install uv statically (musl) via GitHub release tarball
17+ case "${TARGETARCH:-amd64}" in \
18+ amd64) UV_ARCH=x86_64 ;; \
19+ arm64) UV_ARCH=aarch64 ;; \
20+ *) echo "Unsupported TARGETARCH: ${TARGETARCH}" ; exit 1 ;; \
21+ esac; \
22+ UV_URL="https://github.com/astral-sh/uv/releases/latest/download/uv-${UV_ARCH}-unknown-linux-musl.tar.gz" ; \
23+ wget -qO /tmp/uv.tar.gz "$UV_URL" ; \
24+ mkdir -p /opt/uvtmp; \
25+ tar -xzf /tmp/uv.tar.gz -C /opt/uvtmp; \
26+ if [ -f /opt/uvtmp/uv ]; then mv /opt/uvtmp/uv /usr/local/bin/uv; \
27+ else f=$(find /opt/uvtmp -type f -name uv | head -n1); [ -n "$f" ] && mv "$f" /usr/local/bin/uv; fi; \
28+ chmod +x /usr/local/bin/uv; \
29+ ln -sf /usr/local/bin/uv /usr/local/bin/uvx; \
30+ rm -rf /opt/uvtmp /tmp/uv.tar.gz; \
1631 python3 -m venv /opt/mcp; \
1732 . /opt/mcp/bin/activate; \
1833 pip install --no-cache-dir --upgrade pip; \
You can’t perform that action at this time.
0 commit comments