first iteration of the service
This commit is contained in:
		
							parent
							
								
									a1465c89e6
								
							
						
					
					
						commit
						32c1e3936c
					
				
							
								
								
									
										18
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								Dockerfile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
			
		||||
FROM debian:stable
 | 
			
		||||
 | 
			
		||||
WORKDIR /mcpo
 | 
			
		||||
 | 
			
		||||
COPY requirements.txt requirements.txt
 | 
			
		||||
 | 
			
		||||
COPY mcpo_config.json mcpo_config.json
 | 
			
		||||
 | 
			
		||||
COPY gitea_mcp_set.sh gitea_mcp_set.sh
 | 
			
		||||
 | 
			
		||||
RUN apt-get update -y && apt-get install -y python3 virtualenv wget tar python3-pip python3-pip
 | 
			
		||||
 | 
			
		||||
RUN ./gitea_mcp_set.sh
 | 
			
		||||
 | 
			
		||||
RUN pip install -r requirements.txt --break-system-packages
 | 
			
		||||
 | 
			
		||||
EXPOSE 8000
 | 
			
		||||
ENTRYPOINT ["mcpo", "--config", "/mcpo/mcpo_config.json"]
 | 
			
		||||
							
								
								
									
										10
									
								
								gitea_mcp_set.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								gitea_mcp_set.sh
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,10 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
# This script will download and establish gitea-mcp as a binary for use by mcpo in this container
 | 
			
		||||
 | 
			
		||||
wget https://gitea.com/gitea/gitea-mcp/releases/download/v0.3.0/gitea-mcp_Linux_x86_64.tar.gz
 | 
			
		||||
 | 
			
		||||
tar -xvf gitea-mcp_Linux_x86_64.tar.gz
 | 
			
		||||
 | 
			
		||||
cp gitea-mcp /usr/local/bin
 | 
			
		||||
 | 
			
		||||
rm -rf gitea-mcp* README* LICENSE
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user