Update Dockerfile to replace next.config.js with next.config.ts

- Changed the Dockerfile to copy next.config.ts instead of next.config.js, aligning with TypeScript configuration.
- Removed unnecessary copies of bunScripts and env.js to streamline the build process.
This commit is contained in:
m4x809 2025-10-25 04:02:08 +02:00
parent a223b75926
commit a93efe5150
Signed by: m4x809
SSH key fingerprint: SHA256:YCoFF78p2DUP94EnCScqLwldjkKDwdKSZq3r8p/6EiU

View file

@ -15,8 +15,7 @@ WORKDIR /app
# Copy dependencies and config files
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /app/package.json ./
COPY --from=deps /app/bunfig.toml ./
COPY --from=deps /app/next.config.js ./
COPY --from=deps /app/next.config.ts ./
# Copy source code
COPY . .
@ -44,9 +43,7 @@ COPY --from=builder /app/.next/static ./.next/static
COPY --from=builder /app/public ./public
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/package.json ./
COPY --from=builder /app/src/env.js ./src/env.js
COPY --from=builder /app/next.config.js ./
COPY --from=builder /app/bunScripts ./bunScripts
COPY --from=builder /app/next.config.ts ./
ENV TZ="CET"
ENV LANG="de_DE.UTF-8"