Change Docker handling of custom rewrites

This commit is contained in:
Maxime-J committed 2025-04-21 12:42:36 +02:00
1 parent 3b5e1da39e
commit b88432fcf4
4 files changed
+78 -62

No files matched your search

+2 -1
View File
@@ -13,7 +13,6 @@ FROM node:22-alpine AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
COPY docker/middleware.js ./src
ARG DATABASE_TYPE
ARG BASE_PATH
@@ -51,6 +50,8 @@ COPY --from=builder /app/scripts ./scripts
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
RUN mv ./.next/routes-manifest.json ./.next/routes-manifest-orig.json
USER nextjs
EXPOSE 3000