feat: add durable asset synchronization worker

This commit is contained in:
jb
2026-09-19 22:15:23 -04:00
parent 2675ea8114
commit fe7d218195
36 changed files with 2218 additions and 189 deletions
+2
View File
@@ -5,6 +5,7 @@ COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --ignore-scripts
COPY . .
RUN bun run build
RUN bun build workers/sync.ts --target bun --outfile build/sync-worker.js
FROM oven/bun@sha256:e10577f0db68676a7024391c6e5cb4b879ebd17188ab750cf10024a6d700e5c4 AS runtime
ARG APP_RELEASE_ID=local
@@ -17,6 +18,7 @@ RUN bun install --frozen-lockfile --production
COPY --from=build /app/build ./build
COPY --from=build /app/src/lib ./src/lib
COPY --from=build /app/workers ./workers
COPY --from=build /app/scripts/run-sync-worker.ts ./scripts/run-sync-worker.ts
COPY --from=build /app/fixtures ./fixtures
RUN mkdir -p /app/data/reference && chown -R bun:bun /app/data
USER bun