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,8 @@
# Start from the official compiled container
FROM ghcr.io/pewu/topola-viewer:latest
# Copy the unzipped GEDCOM file directly into public folder
COPY family.ged /app/public/family.ged
# Configure server to pre-load this raw GEDCOM file
ENV STATIC_URL=family.ged

View File

@@ -0,0 +1,15 @@
# Standalone GEDCOM Container Example
This example builds a self-contained image that hosts a single `.ged` file directly (no photos).
## Instructions
1. Put your GEDCOM file in this directory and name it `family.ged`.
2. Build your custom container:
```bash
docker build -t my-simple-tree .
```
3. Run your container:
```bash
docker run -d -p 8080:8080 my-simple-tree
```

View File

@@ -0,0 +1,37 @@
0 HEAD
1 SOUR GENJ
2 VERS 1.0
1 GEDC
2 VERS 5.5.1
2 FORM Lineage-Linked
1 CHAR UTF-8
0 @I1@ INDI
1 NAME John /Doe/
1 SEX M
1 FAMS @F1@
1 FAMC @F2@
0 @I2@ INDI
1 NAME Jane /Smith/
1 SEX F
1 FAMS @F1@
0 @F1@ FAM
1 HUSB @I1@
1 WIFE @I2@
1 CHIL @I3@
1 CHIL @I4@
0 @I3@ INDI
1 NAME Bobby /Doe/
1 SEX M
1 FAMC @F1@
0 @I4@ INDI
1 NAME Sally /Doe/
1 SEX F
1 FAMC @F1@
0 @I5@ INDI
1 NAME Grandpa /Doe/
1 SEX M
1 FAMS @F2@
0 @F2@ FAM
1 HUSB @I5@
1 CHIL @I1@
0 TRLR