Skip to content

Commit 4fe04c7

Browse files
committed
Feat: Build both standard and bundled Docker images via workflow
1 parent 5f427f0 commit 4fe04c7

File tree

4 files changed

+25
-7
lines changed

4 files changed

+25
-7
lines changed

.github/workflows/docker-publish.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,32 @@ jobs:
9191
echo 'Dockerfile content after append:'
9292
cat Dockerfile
9393
94-
- name: Build and push Docker image
94+
- name: Build and push standard Docker image
9595
if: steps.compare_versions.outputs.needs_build == 'true'
9696
uses: docker/build-push-action@v5
9797
with:
9898
context: .
99+
# Dockerfile already modified by "Append ENTRYPOINT..." step for standalone
99100
push: true
100101
tags: |
101102
ghcr.io/${{ github.repository }}/mcp-proxy-server:${{ steps.get_version.outputs.version }}
102103
ghcr.io/${{ github.repository }}/mcp-proxy-server:latest
104+
# build-args will use the default empty ARGs from Dockerfile for a lean image
105+
cache-from: type=gha
106+
cache-to: type=gha,mode=max
107+
108+
- name: Build and push bundled Docker image
109+
if: steps.compare_versions.outputs.needs_build == 'true'
110+
uses: docker/build-push-action@v5
111+
with:
112+
context: .
113+
# Dockerfile already modified by "Append ENTRYPOINT..." step for standalone
114+
push: true
115+
tags: |
116+
ghcr.io/${{ github.repository }}/mcp-proxy-server:${{ steps.get_version.outputs.version }}-bundled-mcpservers-playwright
117+
build-args: |
118+
PRE_INSTALLED_PIP_PACKAGES_ARG=mcp-server-time markitdown-mcp mcp-proxy
119+
PRE_INSTALLED_NPM_PACKAGES_ARG=g-search-mcp fetcher-mcp playwright time-mcp mcp-trends-hub @adenot/mcp-google-search edgeone-pages-mcp @modelcontextprotocol/server-filesystem mcp-server-weibo @variflight-ai/variflight-mcp @baidumap/mcp-server-baidu-map @modelcontextprotocol/inspector
120+
PRE_INSTALLED_INIT_COMMAND_ARG=playwright install --with-deps chromium
103121
cache-from: type=gha
104122
cache-to: type=gha,mode=max

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ WORKDIR /mcp-proxy-server
99

1010
# Arguments for pre-installed packages, primarily for standalone builds.
1111
# These allow users of the standalone Docker image to inject packages at build time.
12-
ARG PRE_INSTALLED_PIP_PACKAGES_ARG="mcp-server-time markitdown-mcp mcp-proxy"
13-
ARG PRE_INSTALLED_NPM_PACKAGES_ARG="g-search-mcp fetcher-mcp playwright time-mcp mcp-trends-hub @adenot/mcp-google-search edgeone-pages-mcp @modelcontextprotocol/server-filesystem mcp-server-weibo @variflight-ai/variflight-mcp @baidumap/mcp-server-baidu-map @modelcontextprotocol/inspector"
14-
ARG PRE_INSTALLED_INIT_COMMAND_ARG="playwright install --with-deps chromium"
12+
ARG PRE_INSTALLED_PIP_PACKAGES_ARG=""
13+
ARG PRE_INSTALLED_NPM_PACKAGES_ARG=""
14+
ARG PRE_INSTALLED_INIT_COMMAND_ARG=""
1515

1616
# --- OS Level Setup ---
1717
# This section handles OS package installations.

config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: "MCP Proxy Server"
2-
version: "0.1.5"
2+
version: "0.1.6"
33
slug: "mcp_proxy_server"
44
description: "A central hub for Model Context Protocol (MCP) servers. Manages multiple backend MCP servers (Stdio/SSE), exposing their combined tools and resources via a unified SSE interface or as a Stdio server. Features Web UI for server/tool management, real-time installation monitoring, and optional web terminal."
55
arch:
@@ -38,6 +38,6 @@ boot: auto
3838
webui: "http://[HOST]:[PORT:3663]/admin"
3939
ingress: true
4040
ingress_port: 3663
41-
ingress_entry: /admin
41+
ingress_entry: admin
4242
panel_icon: "mdi:server-network-outline"
4343
panel_title: "MCP Proxy Server"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mcp-proxy-server",
3-
"version": "0.1.5",
3+
"version": "0.1.6",
44
"author": "ptbsare",
55
"license": "MIT",
66
"description": "An MCP proxy server that aggregates and serves multiple MCP resource servers through a single interface with stdio/sse support",

0 commit comments

Comments
 (0)