Skip to content

Commit cf6d849

Browse files
authored
Pin Docker image to exact npm version via build arg (#353)
Pin Docker image to exact npm version via build arg
1 parent 74aca70 commit cf6d849

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/docker-mcp.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
with:
4646
context: packages/mcp-server
4747
file: packages/mcp-server/Dockerfile
48+
build-args: |
49+
MCP_VERSION=${{ steps.version.outputs.version }}
4850
push: true
4951
tags: |
5052
ghcr.io/transloadit/mcp-server:${{ steps.version.outputs.version }}

packages/mcp-server/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM node:22-alpine
2-
RUN npm install -g @transloadit/mcp-server@latest
2+
ARG MCP_VERSION=latest
3+
RUN npm install -g @transloadit/mcp-server@${MCP_VERSION}
34
USER node
45
ENTRYPOINT ["transloadit-mcp", "stdio"]

0 commit comments

Comments
 (0)