Skip to content

Commit d78e21f

Browse files
committed
pin snowflake deps
1 parent 72b7ad3 commit d78e21f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

images/snowflake-mcp/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM python:3.12-slim
55
# Metadata
66
LABEL maintainer="Cognition"
77
LABEL description="Snowflake MCP Server with password and key-pair authentication"
8-
LABEL version="1.0.0"
8+
LABEL version="1.0.1"
99

1010
# Set working directory
1111
WORKDIR /app
@@ -16,8 +16,13 @@ RUN apt-get update && \
1616
ca-certificates && \
1717
rm -rf /var/lib/apt/lists/*
1818

19-
# Install Python package with no cache to minimize image size
20-
RUN pip install --no-cache-dir snowflake-labs-mcp
19+
# Install Python packages with pinned versions to ensure compatibility
20+
# These versions are tested and known to work together
21+
RUN pip install --no-cache-dir \
22+
cryptography==43.0.3 \
23+
pyOpenSSL==24.3.0 \
24+
snowflake-connector-python==3.18.0 \
25+
snowflake-labs-mcp==1.3.5
2126

2227
# Create non-root user (UID 1000, no home directory, no shell)
2328
RUN useradd -u 1000 -M -s /usr/sbin/nologin mcp
@@ -30,4 +35,3 @@ USER mcp
3035

3136
# Set entrypoint (exec form)
3237
ENTRYPOINT ["/entrypoint.sh"]
33-

0 commit comments

Comments
 (0)