- Settings: iCloud Photos section with icloudpd-backed sync — Apple ID, password, download path, cookie dir, live log output via SSE - Settings: Amazon Photos one-time import — path to extracted data export, Add & Index button wires it directly into Watch Folders - scripts/amazon_sync.py: stdlib-only downloader using Netscape cookie file - server: POST /api/sync/icloud, /api/sync/amazon, GET /api/sync/stream (SSE log streaming matching ingest stream pattern) - db: icloud/amazon setting keys; getSettings handles bool + string fields - Gear icon: fontSize 16→20, button 38×38, color #555→#888 - favicon.svg: 6-blade aperture icon in Luma blue - Browser tab title: shpm → Luma - Dockerfile: installs icloudpd via pip3, copies scripts/ Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
43 lines
1.3 KiB
Docker
43 lines
1.3 KiB
Docker
# ── Stage 1: build client ────────────────────────────────────────────────────
|
|
FROM node:22-alpine AS builder
|
|
|
|
# Build tools needed by better-sqlite3 native addon
|
|
RUN apk add --no-cache python3 make g++
|
|
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
RUN npm run build
|
|
|
|
# ── Stage 2: runtime ─────────────────────────────────────────────────────────
|
|
FROM node:22-alpine
|
|
|
|
RUN apk add --no-cache python3 py3-pip make g++ && \
|
|
pip3 install icloudpd --break-system-packages
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
# Reinstall in the runtime image so native addons compile for this arch
|
|
RUN npm ci --omit=dev
|
|
|
|
COPY --from=builder /app/dist ./dist
|
|
COPY worker ./worker
|
|
COPY server ./server
|
|
COPY scripts ./scripts
|
|
|
|
ENV PORT=3000 \
|
|
DB_PATH=/data/library.db \
|
|
POSTER_DIR=/data/posters \
|
|
PHOTO_DIR=/photos \
|
|
NODE_ENV=production
|
|
|
|
EXPOSE 3000
|
|
|
|
# /data — SQLite database + generated thumbnails (mount a named volume)
|
|
# /photos — read-only source photo directory (bind-mount from host)
|
|
VOLUME ["/data", "/photos"]
|
|
|
|
CMD ["node", "server/index.js"]
|