content: FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim
  ENV TZ=UTC
  
  WORKDIR /app
  
  RUN apt-get update \
      && apt-get upgrade -y \
      && apt-get install -y \
      build-essential \
      curl \
      npm \
      git \
      && apt-get clean \
      && rm -rf /var/lib/apt/lists/*
  
  COPY . /app
  
  # Install dependencies using uv
  RUN --mount=type=cache,target=/root/.cache/uv \
      --mount=type=bind,source=uv.lock,target=uv.lock \
      --mount=type=bind,source=README.md,target=README.md \
      --mount=type=bind,source=pyproject.toml,target=pyproject.toml \
      --mount=type=bind,source=src/backend/base/README.md,target=src/backend/base/README.md \
      --mount=type=bind,source=src/backend/base/uv.lock,target=src/backend/base/uv.lock \
      --mount=type=bind,source=src/backend/base/pyproject.toml,target=src/backend/base/pyproject.toml \
      --mount=type=bind,source=src/lfx/README.md,target=src/lfx/README.md \
      --mount=type=bind,source=src/lfx/pyproject.toml,target=src/lfx/pyproject.toml \
      uv sync --frozen --no-install-project --no-dev --extra postgresql
  
  EXPOSE 7860
  EXPOSE 3000
  
  CMD ["./docker/dev.start.sh"]
  