feat: add page shell, preferences and translations
Base layout with top bar, role-based menu, profile menu and phone layout; theme, language and German form of address kept in cookies; German formal, German informal and English text; Fluent avatar bundled in the image by a Node build stage; placeholder pages for the Publisher and Admin groups. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01N3t4WL7bd9bdHHNjEsxzqC
This commit is contained in:
+12
-3
@@ -1,24 +1,33 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
# Builds the Fluent web components bundle; Node.js is not part of the runtime image.
|
||||
FROM node:24-slim AS frontend
|
||||
WORKDIR /frontend
|
||||
COPY portal/frontend/package.json portal/frontend/package-lock.json ./
|
||||
RUN npm ci --ignore-scripts --no-audit --no-fund
|
||||
COPY portal/frontend/entry.js portal/frontend/build.mjs ./
|
||||
RUN npm run build
|
||||
|
||||
FROM python:3.13-slim AS builder
|
||||
COPY --from=ghcr.io/astral-sh/uv:0.13.1 /uv /usr/local/bin/uv
|
||||
ENV UV_COMPILE_BYTECODE=1 UV_LINK_MODE=copy UV_PYTHON_DOWNLOADS=never
|
||||
WORKDIR /app
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends build-essential libldap2-dev libsasl2-dev \
|
||||
&& apt-get install -y --no-install-recommends build-essential libldap2-dev libsasl2-dev gettext \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
COPY pyproject.toml uv.lock .python-version README.md ./
|
||||
RUN uv sync --frozen --no-dev --no-install-project
|
||||
COPY manage.py ./
|
||||
COPY portal ./portal
|
||||
# Build-time only values so collectstatic can load settings; not used at runtime.
|
||||
COPY --from=frontend /frontend/dist/fluent.js ./portal/static/vendor/fluent.js
|
||||
# Build-time only values so compilemessages and collectstatic can load settings; not used at runtime.
|
||||
RUN SECRET_KEY=build-time-only-value-not-used-at-runtime-000000 \
|
||||
ALLOWED_HOSTS=localhost DATA_DIR=/tmp \
|
||||
LDAP_SERVER=build.invalid LDAP_USER_OU_DN=build LDAP_BIND_DN=build LDAP_BIND_PASSWORD=build \
|
||||
LDAP_CA_FILE=/app/README.md LDAP_PUBLISHER_GROUP_DN=build LDAP_ADMIN_GROUP_DN=build \
|
||||
OIDC_ISSUER=https://build.invalid/ OIDC_CLIENT_ID=build OIDC_CLIENT_SECRET=build \
|
||||
PUBLIC_BASE_URL=https://build.invalid \
|
||||
/app/.venv/bin/python manage.py collectstatic --noinput
|
||||
sh -c '/app/.venv/bin/python manage.py compilemessages && /app/.venv/bin/python manage.py collectstatic --noinput'
|
||||
|
||||
# Not part of the runtime image: `docker compose --profile test run --rm live-test`
|
||||
FROM builder AS test
|
||||
|
||||
Reference in New Issue
Block a user