Added developer debugging tools (#1479) (#1508)

This commit is contained in:
daveoconnor
2025-01-09 10:01:43 -08:00
committed by GitHub
parent 55f99422fd
commit c9f4d36afb
12 changed files with 106 additions and 3 deletions

View File

@@ -2,6 +2,8 @@
FROM python:3.11-slim AS builder-py
ARG LOCAL_DEVELOPMENT
RUN apt update && apt install -y build-essential gcc python-dev-is-python3 libpq-dev postgresql-client ruby ruby-dev && rm -rf /var/lib/apt/lists/*
# Install ruby's asciidoctor.
@@ -13,6 +15,8 @@ RUN pip install --upgrade pip
# Boostrap uv.
RUN pip install 'uv>=0.2.27,<0.3'
COPY ./requirements.txt ./code/requirements.txt
COPY ./requirements-dev.txt ./code/requirements-dev.txt
# Create the virtualenv.
RUN uv venv venv
@@ -22,6 +26,11 @@ RUN --mount=type=cache,target=/root/.cache \
. /venv/bin/activate && \
uv pip install -r /code/requirements.txt
RUN --mount=type=cache,target=/root/.cache if [ "${LOCAL_DEVELOPMENT}" = "true" ]; then \
. /venv/bin/activate && \
uv pip install -r /code/requirements-dev.txt; \
fi
# Builder step for JS.
FROM node:22-slim AS builder-js