File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ WORKDIR /app
5
5
# Set default MCP transport if not provided
6
6
ENV MCP_TRANSPORT=stdio
7
7
8
+ # Set UV cache directory to a writable location
9
+ ENV UV_CACHE_DIR=/tmp/uv-cache
10
+
8
11
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
9
12
10
13
# Copy project files needed for uv sync
@@ -15,16 +18,18 @@ COPY README.md ./
15
18
# Copy application files (needed for editable install)
16
19
COPY ./src/ ./src/
17
20
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
+
20
26
# Environment variables (set these when running the container)
21
27
# SNOWFLAKE_BASE_URL - Snowflake API base URL (optional, defaults to Red Hat's instance)
22
28
# SNOWFLAKE_TOKEN - Snowflake authentication token (required)
23
29
# SNOWFLAKE_DATABASE - Snowflake database name (optional)
24
30
# SNOWFLAKE_SCHEMA - Snowflake schema name (optional)
25
31
# MCP_TRANSPORT - MCP transport type (optional)
26
32
27
-
28
33
# Expose metrics port
29
34
EXPOSE 8000
30
35
You can’t perform that action at this time.
0 commit comments