File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -2,31 +2,28 @@ FROM registry.access.redhat.com/ubi9/python-311
2
2
3
3
WORKDIR /app
4
4
5
- # Install UV
6
- RUN pip install uv
5
+ # Set default MCP transport if not provided
6
+ ENV MCP_TRANSPORT=stdio
7
+
8
+ COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
7
9
8
10
# Copy project files needed for uv sync
9
11
COPY pyproject.toml ./
10
12
COPY .python-version ./
13
+ COPY uv.lock ./
11
14
COPY README.md ./
12
-
13
15
# Copy application files (needed for editable install)
14
16
COPY ./src/ ./src/
15
17
16
- # Configure UV to use the existing virtual environment
17
- ENV UV_PROJECT_ENVIRONMENT=/opt/app-root
18
-
19
18
# Install dependencies using UV
20
- RUN uv sync --no-dev --no-cache
19
+ RUN uv sync --locked
21
20
# Environment variables (set these when running the container)
22
21
# SNOWFLAKE_BASE_URL - Snowflake API base URL (optional, defaults to Red Hat's instance)
23
22
# SNOWFLAKE_TOKEN - Snowflake authentication token (required)
24
23
# SNOWFLAKE_DATABASE - Snowflake database name (optional)
25
24
# SNOWFLAKE_SCHEMA - Snowflake schema name (optional)
26
25
# MCP_TRANSPORT - MCP transport type (optional)
27
26
28
- # Set default MCP transport if not provided
29
- ENV MCP_TRANSPORT=stdio
30
27
31
28
# Expose metrics port
32
29
EXPOSE 8000
You can’t perform that action at this time.
0 commit comments