Skip to content

Commit 9db132b

Browse files
authored
Merge pull request #40 from eifrach/fix_container_uv
NO-ISSUE: fix UV container
2 parents f19b210 + 07d93fe commit 9db132b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.dockerignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@
22
.venv/
33
.gitignore
44
.git/
5-
openshift/
5+
openshift/
6+
nowflake_CSV/
7+
**/*.pvc
8+
__pycache__/

Containerfile

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ 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-
118
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
129

1310
# Copy project files needed for uv sync
@@ -19,9 +16,7 @@ COPY README.md ./
1916
COPY ./src/ ./src/
2017

2118
# 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
19+
RUN uv sync --no-cache --locked
2520

2621
# Environment variables (set these when running the container)
2722
# SNOWFLAKE_BASE_URL - Snowflake API base URL (optional, defaults to Red Hat's instance)

0 commit comments

Comments
 (0)