Skip to content

Commit c928055

Browse files
committed
Fix Docker entrypoint by removing --no-editable flag and copying source code
- Removed --no-editable from uv sync to properly install package with console scripts - Added source code copy to final image to support installed package - This fixes the 'exec mcp-server-sqlite: no such file or directory' error
1 parent 87afdd6 commit c928055

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
2323
# Installing separately from its dependencies allows optimal layer caching
2424
ADD . /app
2525
RUN --mount=type=cache,target=/root/.cache/uv \
26-
uv sync --frozen --no-dev --no-editable
26+
uv sync --frozen --no-dev
2727

2828
FROM python:3.13-alpine
2929

@@ -41,6 +41,9 @@ WORKDIR /app
4141
# Copy the virtual environment from the uv stage
4242
COPY --from=uv --chown=app:app /app/.venv /app/.venv
4343

44+
# Copy the source code (needed for non-editable installs)
45+
COPY --from=uv --chown=app:app /app/src /app/src
46+
4447
# Place executables in the environment at the front of the path
4548
ENV PATH="/app/.venv/bin:$PATH"
4649

0 commit comments

Comments
 (0)