feat: add deployment reload controls

This commit is contained in:
2026-08-23 14:33:26 +00:00 Unverified
parent 25dccdfa4f
commit a630e0cc2f
11 changed files with 341 additions and 32 deletions
+3 -1
View File
@@ -18,7 +18,8 @@ ENV NEXT_TELEMETRY_DISABLED=1
COPY . .
# Build Next.js
RUN --mount=type=cache,target=/app/.next/cache \
bun run build
bun -e "await Bun.write('.version', crypto.randomUUID())" && \
NEXT_DEPLOYMENT_ID="$(bun -e 'process.stdout.write(await Bun.file(".version").text())')" bun run build
# The standalone tracer includes both glibc and musl Sharp packages. Alpine only
# needs musl, so prune the incompatible copy before it enters a runtime layer.
@@ -38,6 +39,7 @@ ENV PORT=3000
COPY --from=builder /app/.next/standalone ./
COPY --from=builder /app/public ./public
COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/.version ./.version
EXPOSE 3000
CMD ["bun", "server.js"]