Files
MangaCircus/Dockerfile
MaashkinoozheandClaude Opus 5.5 f38f218ae0 Dockerfile: copy moments.js; guard test for required top-level modules
The 5497e8b image lacked moments.js, so the reader crashed at start on
docker-01. test/dockerfile.test.js follows server.js requires and fails
when a top-level module is not copied into the image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-27 12:56:07 +01:00

20 lines
794 B
Docker

FROM node:24-alpine
RUN apk add --no-cache tzdata openssl
WORKDIR /app
ARG VCS_REF=development
LABEL org.opencontainers.image.title="MangaCircus" org.opencontainers.image.revision=$VCS_REF
COPY package.json server.js library.js reading-direction.js chapter-identity.js chapter-dates.js reading-analytics.js reading-access.js catalog.js backup.js moments.js ./
COPY public ./public
COPY greatest ./greatest
COPY discovery ./discovery
COPY tools ./tools
COPY scraper ./scraper
COPY peering ./peering
COPY runtime ./runtime
RUN mkdir -p /library /data && chown node:node /data /library
ENV PORT=8080 LIBRARY=/library DATA=/data TZ=UTC
EXPOSE 8080
USER node
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s CMD node tools/healthcheck.js reader
CMD ["node", "runtime/launch.js", "reader"]