| |
| FROM ghcr.io/astral-sh/uv:latest AS uvstage |
| |
|
|
| |
| FROM node:20-slim |
|
|
| |
| RUN apt-get update && apt-get install -yqq --no-install-recommends \ |
| git python3 python3-pip coreutils socat \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN pip3 install --no-cache-dir huggingface_hub --break-system-packages |
|
|
| |
| RUN npm install -g pnpm |
|
|
| ENV PORT=7860 |
|
|
| |
| COPY --from=uvstage /uv /uvx /usr/local/bin/ |
| |
|
|
| |
| ENV PNPM_HOME=/usr/local/share/pnpm |
| ENV PATH=$PNPM_HOME:$PATH |
| WORKDIR /app |
| RUN git config --global --add safe.directory /app |
|
|
| |
| RUN git clone https://github.com/samanhappy/mcphub.git . |
| RUN pnpm install |
| RUN npm run build |
|
|
| |
| COPY start.sh /app/start.sh |
| RUN chmod +x /app/start.sh |
|
|
| EXPOSE 7860 |
| CMD ["/app/start.sh"] |