mirror of
https://github.com/open-webui/mcpo
synced 2025-06-26 18:26:58 +00:00
refac
This commit is contained in:
parent
45c474e0f0
commit
7785b608c9
16
Dockerfile
16
Dockerfile
@ -10,7 +10,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install Node.js and npm via NodeSource
|
# Install Node.js and npm via NodeSource
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
|
RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||||
&& apt-get install -y nodejs \
|
&& apt-get install -y nodejs \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
@ -21,10 +21,16 @@ RUN node -v && npm -v
|
|||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Install mcpo via uv
|
# Create virtual environment explicitly in known location
|
||||||
RUN uv venv \
|
ENV VIRTUAL_ENV=/app/.venv
|
||||||
&& uv pip install . \
|
RUN uv venv "$VIRTUAL_ENV"
|
||||||
&& rm -rf ~/.cache
|
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
||||||
|
|
||||||
|
# Install mcpo (assuming pyproject.toml is properly configured)
|
||||||
|
RUN uv pip install . && rm -rf ~/.cache
|
||||||
|
|
||||||
|
# Verify mcpo installed correctly
|
||||||
|
RUN which mcpo
|
||||||
|
|
||||||
# Expose port (optional but common default)
|
# Expose port (optional but common default)
|
||||||
EXPOSE 8000
|
EXPOSE 8000
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user