<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Chores** - Enhanced deployment and build processes to improve system reliability and simplify dependency management. - **New Features** - Added a new dependency (`uv>=0.6.3`) to support enhanced functionality. - Updated extra dependencies for `codegraph` to include the `transformers` library. - Improved logging on server startup for clearer operational feedback. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
34 lines
678 B
Docker
34 lines
678 B
Docker
# Use a Python image with uv pre-installed
|
|
FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim AS uv
|
|
|
|
# Set build argument
|
|
ARG DEBUG
|
|
|
|
# Set environment variable based on the build argument
|
|
ENV DEBUG=${DEBUG}
|
|
ENV PIP_NO_CACHE_DIR=true
|
|
|
|
WORKDIR /app
|
|
|
|
# Enable bytecode compilation
|
|
ENV UV_COMPILE_BYTECODE=1
|
|
|
|
# Copy from the cache instead of linking since it's a mounted volume
|
|
ENV UV_LINK_MODE=copy
|
|
|
|
RUN apt-get update && apt-get install -y \
|
|
gcc \
|
|
libpq-dev
|
|
|
|
RUN apt-get install -y \
|
|
gcc \
|
|
libpq-dev
|
|
|
|
COPY . /app
|
|
|
|
RUN uv sync --reinstall
|
|
|
|
# Place executables in the environment at the front of the path
|
|
ENV PATH="/app/:/app/.venv/bin:$PATH"
|
|
|
|
ENTRYPOINT ["cognee"]
|