feat: added improvements from django-htmx-template
CI / test (push) Successful in 1m2s
CI / build (push) Successful in 50s

This commit is contained in:
2026-09-21 14:27:17 +02:00
parent e76b4b7a9c
commit 5fe349d617
12 changed files with 106 additions and 34 deletions
+8 -2
View File
@@ -1,7 +1,9 @@
FROM python:3.13-alpine3.23 AS builder
ENV UV_SYSTEM_PYTHON=1
COPY --from=ghcr.io/astral-sh/uv:0.11 /uv /usr/local/bin/uv
COPY pyproject.toml .
RUN pip install uv && uv pip install -r pyproject.toml && pip uninstall -y uv
RUN uv pip install -r pyproject.toml
FROM python:3.13-alpine3.23
@@ -21,8 +23,12 @@ RUN chown -R ${user}:${user} /code
COPY --chown=${user}:${user} . /code
# SECRET_KEY/ALLOWED_HOSTS provisionales para la construcción de la imagen
# (build.sh carga settings, que ya no traen un valor por defecto para
# ninguna de las dos, ver config/settings/env.py). En producción no se
# heredan: solo existen en esta RUN, no quedan en la imagen final.
RUN apk add --no-cache --virtual .tailwind-runtime libstdc++ libgcc \
&& su ${user} -c "sh ./scripts/build.sh" \
&& SECRET_KEY=build-only ALLOWED_HOSTS='*' su ${user} -c "sh ./scripts/build.sh" \
&& apk del .tailwind-runtime
USER ${user}