Added examples and documentation for the published docker image

This commit is contained in:
Przemek Więch
2026-05-06 00:18:03 +02:00
parent bdf1ab9d8f
commit 664ca69fb3
9 changed files with 155 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
# Stage 1: Multi-stage helper to zip GEDCOM & photos together preserving directory structure
FROM alpine:latest AS zipper
RUN apk add --no-cache zip
WORKDIR /build
COPY family.ged ./
COPY photos/ ./photos/
# Zip contents relative to build root to preserve directories as referenced in GEDCOM
RUN zip -r family.gdz family.ged photos/
# Stage 2: Load the zip file into the official container
FROM ghcr.io/pewu/topola-viewer:latest
COPY --from=zipper /build/family.gdz /app/public/family.gdz
ENV STATIC_URL=family.gdz