There was no favicon at all -- index.html never linked one, and the frontend Dockerfile's build stage never copied the public/ directory into the build context, so even after adding public/favicon.svg locally, the containerized build silently dropped it (nginx fell back to serving index.html for that path). Fixed both: index.html links /favicon.svg, and the Dockerfile now copies public/ alongside src/. The favicon reuses the existing BrandMark glyph (petrol background, teal accent) for visual consistency with the in-app brand mark. A regression test for this lives in the earlier translation-fix commit (frontend/e2e/fleet-ops-correction.spec.ts), added together with the fix at the time.
12 lines
316 B
Docker
12 lines
316 B
Docker
FROM node:22-alpine AS build
|
|
WORKDIR /app
|
|
COPY package.json package-lock.json tsconfig.json vite.config.ts index.html ./
|
|
COPY public ./public
|
|
COPY src ./src
|
|
RUN npm ci && npm run build
|
|
|
|
FROM nginx:1.27-alpine
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
COPY --from=build /app/dist /usr/share/nginx/html
|
|
EXPOSE 80
|