This commit is contained in:
2026-10-15 04:37:38 +01:00
parent cb43d0616e
commit 6326c2bb26
18 changed files with 469 additions and 364 deletions
+10 -3
View File
@@ -1,9 +1,11 @@
FROM oven/bun:1.3.1-debian
FROM oven/bun:1.4-debian
RUN apt update
RUN apt install -y curl bash nano wget zip unzip
ENV NODE_ENV=production
ENV BUN_FEATURE_FLAG_DISABLE_STREAMING_INSTALL=1
ENV PAGE_LASTMOD_FILE=/data/page-lastmod.json
RUN mkdir /app
@@ -15,8 +17,13 @@ RUN echo 'alias ll="ls -laF"' >/root/.bashrc
COPY . /app/.
RUN bun install
# RUN bun db:schema
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
ENV NODE_ENV=production
CMD ["bun", "start"]
HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \
CMD curl -fsS "http://localhost:${PORT:-3000}/api/health" || exit 1
ENTRYPOINT ["/entrypoint.sh"]