Skip to content

Commit f19b210

Browse files
authored
Merge pull request #39 from natifridman/uv-cache
Set UV cache directory and adjust installation permissions in Containerfile
2 parents 209fb1f + 588da34 commit f19b210

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

Containerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ WORKDIR /app
55
# Set default MCP transport if not provided
66
ENV MCP_TRANSPORT=stdio
77

8+
# Set UV cache directory to a writable location
9+
ENV UV_CACHE_DIR=/tmp/uv-cache
10+
811
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
912

1013
# Copy project files needed for uv sync
@@ -15,16 +18,18 @@ COPY README.md ./
1518
# Copy application files (needed for editable install)
1619
COPY ./src/ ./src/
1720

18-
# Install dependencies using UV
19-
RUN uv sync --locked
21+
# Create cache directory with proper permissions and install dependencies
22+
RUN mkdir -p $UV_CACHE_DIR && \
23+
chmod 755 $UV_CACHE_DIR && \
24+
uv sync --locked
25+
2026
# Environment variables (set these when running the container)
2127
# SNOWFLAKE_BASE_URL - Snowflake API base URL (optional, defaults to Red Hat's instance)
2228
# SNOWFLAKE_TOKEN - Snowflake authentication token (required)
2329
# SNOWFLAKE_DATABASE - Snowflake database name (optional)
2430
# SNOWFLAKE_SCHEMA - Snowflake schema name (optional)
2531
# MCP_TRANSPORT - MCP transport type (optional)
2632

27-
2833
# Expose metrics port
2934
EXPOSE 8000
3035

0 commit comments

Comments
 (0)