- docker-compose stack: podpuddle + MediaMTX (RTMP/WHIP/HLS) + blossom-server - NIP-98 nostr-only login with session cookies, replay guard, clock-skew window - podcasts/episodes CRUD; episodes register browser-uploaded blossom blobs - RSS 2.0 + itunes + podcast namespace feeds with lnaddress value blocks (podcast:guid UUIDv5 verified against the spec vector) - streams API with hashed stream keys; MediaMTX http-auth webhook (query/password/bearer forms); API poller flips live/ended status - NIP-53 kind 30311 live events published with the server's nostr identity - recordings: ffmpeg remux + server-key blossom upload → podcast episode - 35 vitest tests green Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
38 lines
1.1 KiB
Docker
38 lines
1.1 KiB
Docker
# ---- frontend ----
|
|
FROM node:22-bookworm-slim AS frontend-build
|
|
WORKDIR /build/frontend
|
|
COPY frontend/package*.json ./
|
|
RUN npm ci
|
|
COPY frontend/ ./
|
|
RUN npm run build
|
|
|
|
# ---- server ----
|
|
FROM node:22-bookworm-slim AS server-build
|
|
WORKDIR /build/server
|
|
COPY server/package*.json ./
|
|
RUN npm ci
|
|
COPY server/ ./
|
|
RUN npm run build && npm prune --omit=dev
|
|
|
|
# ---- runtime ----
|
|
FROM node:22-bookworm-slim
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends ffmpeg curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
WORKDIR /app
|
|
COPY --from=server-build /build/server/node_modules ./node_modules
|
|
COPY --from=server-build /build/server/package.json ./package.json
|
|
COPY --from=server-build /build/server/dist ./dist
|
|
COPY --from=frontend-build /build/frontend/dist ./public
|
|
# Named volumes inherit ownership from the image path: keep /data writable by node
|
|
RUN mkdir -p /data && chown node:node /data
|
|
USER node
|
|
ENV NODE_ENV=production \
|
|
PORT=8095 \
|
|
DATA_DIR=/data \
|
|
STATIC_DIR=/app/public
|
|
EXPOSE 8095
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
|
CMD curl -fsS http://localhost:8095/api/health || exit 1
|
|
CMD ["node", "dist/index.js"]
|