Files
computer-playbook/roles/web-app-taiga/templates/Dockerfile.frontend.j2
kevinveenbirkenbachandClaude Opus 4.8 8c91b0ead7 refactor(web-app-taiga): drive the front plugin builder base from config
The OIDC front plugin builder hardcoded FROM node:16-alpine. Source it
from services.front.image / services.front.version so the base is
config-driven and reachability-checked, and pin taiga-events/protected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 05:05:11 +02:00

19 lines
641 B
Docker

# ── Stage 1: Build taiga-contrib-oidc-auth frontend plugin ───────────────────
# Node 16 matches .nvmrc of taiga-contrib-oidc-auth
FROM {{ TAIGA_OIDC_FRONTEND_BUILDER_IMAGE }}:{{ TAIGA_OIDC_FRONTEND_BUILDER_VERSION }} AS plugin-builder
RUN apk add --no-cache git
WORKDIR /build
RUN git clone {{ TAIGA_OIDC_PLUGIN_REPOSITORY }} . && \
git checkout {{ TAIGA_OIDC_PLUGIN_REF }}
WORKDIR /build/front
RUN npm install
RUN {{ TAIGA_OIDC_FRONTEND_BUILD_COMMAND }}
FROM taigaio/taiga-front:{{ TAIGA_VERSION }}
COPY --from=plugin-builder /build/front/dist/ /usr/share/nginx/html/plugins/oidc-auth/