mirror of
https://github.com/dogkeeper886/ollama-k80-lab.git
synced 2025-12-09 23:37:07 +00:00
mcpo is not work in open-webui docker image
This commit is contained in:
@@ -1,26 +0,0 @@
|
||||
# Use a Rocky Linux 9 base image
|
||||
FROM rockylinux/rockylinux:9
|
||||
|
||||
# Update the system packages
|
||||
RUN dnf -y update\
|
||||
&& dnf -y install python3.11 python3.11-pip nodejs git
|
||||
|
||||
# Install uvx and mcpo using pip
|
||||
RUN pip3.11 install uvx mcpo
|
||||
|
||||
# Clone the servers repository from GitHub
|
||||
RUN cd /usr/local/src && git clone https://github.com/modelcontextprotocol/servers.git
|
||||
|
||||
# Copy the configuration file
|
||||
COPY config.json /root/config.json
|
||||
|
||||
# Expose the 8000 TCP port
|
||||
EXPOSE 8000
|
||||
|
||||
# Set the entrypoint to run the mcpo executable
|
||||
ENTRYPOINT ["mcpo"]
|
||||
|
||||
# Set the default command to run mcpo with the config file
|
||||
CMD ["--config", "/root/config.json"]
|
||||
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
version: "3.8"
|
||||
services:
|
||||
mcpo:
|
||||
image: mcpo
|
||||
ports:
|
||||
- "8000:8000"
|
||||
restart: unless-stopped
|
||||
container_name: mcpo
|
||||
Reference in New Issue
Block a user