| # debian.sh --arch 'amd64' out/ 'trixie' '@1765152000' |
| ARG BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 |
| ENV BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 |
| ARG BUN_INSTALL_BIN=/usr/local/bin |
| ENV BUN_INSTALL_BIN=/usr/local/bin |
| COPY docker-entrypoint.sh /usr/local/bin # buildkit |
| COPY /usr/local/bin/bun /usr/local/bin/bun # buildkit |
| RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c mkdir -p /usr/local/bun-node-fallback-bin && ln -s /usr/local/bin/bun /usr/local/bun-node-fallback-bin/node # buildkit |
| ENV PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/bun-node-fallback-bin |
| RUN |2 BUN_RUNTIME_TRANSPILER_CACHE_PATH=0 BUN_INSTALL_BIN=/usr/local/bin /bin/sh -c groupadd bun --gid 1000 && useradd bun --uid 1000 --gid bun --shell /bin/sh --create-home && ln -s /usr/local/bin/bun /usr/local/bin/bunx && which bun && which bunx && bun --version # buildkit |
| WORKDIR /home/bun/app |
| ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"] |
| CMD ["/usr/local/bin/bun"] |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ffmpeg ca-certificates curl postgresql-client-17 tini tesseract-ocr tesseract-ocr-eng tesseract-ocr-nor && rm -rf /var/lib/apt/lists/* # buildkit |
| WORKDIR /app |
| COPY /app/package.json /app/bun.lock /app/.npmrc /app/tsconfig.base.json /app/release.json ./ # buildkit |
| COPY /app/vendor vendor # buildkit |
| COPY /app/apps/server apps/server # buildkit |
| COPY /app/apps/web/package.json apps/web/package.json # buildkit |
| COPY /app/apps/web/dist apps/web/dist # buildkit |
| COPY /app/apps/cast/package.json apps/cast/package.json # buildkit |
| COPY /app/apps/cast/dist apps/cast/dist # buildkit |
| COPY /app/apps/catalog/package.json apps/catalog/package.json # buildkit |
| COPY /app/packages packages # buildkit |
| RUN /bin/sh -c rm -rf packages/*/node_modules apps/*/node_modules vendor/*/node_modules && bun install --production --frozen-lockfile # buildkit |
| ARG LUMEN_BUILD_ID=c44c5a10fed1 |
| ENV NODE_ENV=production LUMEN_BUILD_ID=c44c5a10fed1 LUMEN_DATA=/data LUMEN_PORT=3990 LUMEN_WEB_DIR=/app/apps/web/dist LUMEN_CAST_DIR=/app/apps/cast/dist |
| RUN |1 LUMEN_BUILD_ID=c44c5a10fed1 /bin/sh -c ln -s /app/apps/server/src/cli/lumen.ts /usr/local/bin/lumen && chmod +x apps/server/src/cli/lumen.ts # buildkit |
| VOLUME [/data] |
| EXPOSE [3990/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL curl -fsS http://127.0.0.1:3990/api/health || exit 1] Interval:30s Timeout:5s StartPeriod:20s StartInterval:0s Retries:3} |
| ENTRYPOINT ["/usr/bin/tini" "--"] |
| CMD ["bun" "run" "apps/server/src/main.ts"] |