Skip to content

Commit 209fb1f

Browse files
authored
Merge pull request #38 from eifrach/fix_uv_install
NO-ISSUE: change UV install method
2 parents 44eb76f + ac1e80f commit 209fb1f

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Containerfile

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,28 @@ FROM registry.access.redhat.com/ubi9/python-311
22

33
WORKDIR /app
44

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/
79

810
# Copy project files needed for uv sync
911
COPY pyproject.toml ./
1012
COPY .python-version ./
13+
COPY uv.lock ./
1114
COPY README.md ./
12-
1315
# Copy application files (needed for editable install)
1416
COPY ./src/ ./src/
1517

16-
# Configure UV to use the existing virtual environment
17-
ENV UV_PROJECT_ENVIRONMENT=/opt/app-root
18-
1918
# Install dependencies using UV
20-
RUN uv sync --no-dev --no-cache
19+
RUN uv sync --locked
2120
# Environment variables (set these when running the container)
2221
# SNOWFLAKE_BASE_URL - Snowflake API base URL (optional, defaults to Red Hat's instance)
2322
# SNOWFLAKE_TOKEN - Snowflake authentication token (required)
2423
# SNOWFLAKE_DATABASE - Snowflake database name (optional)
2524
# SNOWFLAKE_SCHEMA - Snowflake schema name (optional)
2625
# MCP_TRANSPORT - MCP transport type (optional)
2726

28-
# Set default MCP transport if not provided
29-
ENV MCP_TRANSPORT=stdio
3027

3128
# Expose metrics port
3229
EXPOSE 8000

0 commit comments

Comments
 (0)