feat: add deployment reload controls
This commit is contained in:
+3
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user