Initial commit: postcard v1

Phone photo -> composited postcard (canvas templates, stamp corner,
EXIF-aware date/location, self-hosted handwriting font) with a small
server for share links, day-context caption drafting off goonk's
day-summary API, and Nominatim reverse geocoding.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Fredrik Johansson
2026-08-06 19:49:03 +02:00
co-authored by Claude Sonnet 5
commit cf0f5fca2c
24 changed files with 2839 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
FROM node:24-slim
# better-sqlite3 has a native addon with no prebuilt binary for this
# platform/Node combo yet — build it from source, then drop the toolchain.
RUN apt-get update -q && apt-get install -y --no-install-recommends python3 make g++ \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY server/package*.json server/
RUN npm install --prefix server --omit=dev \
&& apt-get purge -y python3 make g++ && apt-get autoremove -y
COPY server/src/ server/src/
COPY index.html style.css app.js exif.js favicon.svg ./
COPY fonts/ fonts/
# Do NOT copy data/ — mutable runtime volume holding the SQLite db and
# image blobs, would get clobbered on every redeploy if baked in.
ENV NODE_ENV=production
ENV PORT=3098
ENV DATA_DIR=/app/data
EXPOSE 3098
CMD ["node", "server/src/index.js"]