From 4719b82c562ab0a95421b9b53d40655092609a5d Mon Sep 17 00:00:00 2001 From: Boris Arzentar Date: Tue, 11 Mar 2025 18:34:35 +0100 Subject: [PATCH] fix: don't compile python to bytecode in Dockerfile --- cognee-mcp/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cognee-mcp/Dockerfile b/cognee-mcp/Dockerfile index 4d7d455ee..8efb7c46e 100644 --- a/cognee-mcp/Dockerfile +++ b/cognee-mcp/Dockerfile @@ -5,7 +5,7 @@ FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv WORKDIR /app # Enable bytecode compilation -ENV UV_COMPILE_BYTECODE=1 +# ENV UV_COMPILE_BYTECODE=1 # Copy from the cache instead of linking since it's a mounted volume ENV UV_LINK_MODE=copy @@ -27,8 +27,7 @@ FROM python:3.12-slim-bookworm WORKDIR /app COPY --from=uv /root/.local /root/.local -COPY --from=uv --chown=app:app /app/.venv /app/.venv -COPY --from=uv --chown=app:app /app/src /app/src +COPY --from=uv --chown=app:app /app /app # Place executables in the environment at the front of the path ENV PATH="/app/.venv/bin:$PATH"