fix: fix PWA for mobile

This commit is contained in:
2026-04-21 08:49:36 +02:00
parent b2a7c1a2e3
commit b7269601eb
3 changed files with 25 additions and 3 deletions

View File

@ -1,10 +1,18 @@
FROM node:22-alpine AS builder
FROM node:22 AS builder
RUN apt-get update && apt-get install -y --no-install-recommends librsvg2-bin && rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package.json package-lock.json* ./
RUN npm ci
COPY . .
# Generate PNG icons from SVG source
RUN mkdir -p public/icons && \
rsvg-convert -w 192 -h 192 public/icon-source.svg -o public/icons/icon-192.png && \
rsvg-convert -w 512 -h 512 public/icon-source.svg -o public/icons/icon-512.png
RUN npm run build
FROM nginx:alpine