diff --git a/Dockerfile b/Dockerfile index 652aa864..914bf441 100644 --- a/Dockerfile +++ b/Dockerfile @@ -44,14 +44,17 @@ RUN apt-get update && apt-get install -y \ # Set the working directory WORKDIR /app -# Copy necessary files from build stage (standalone output) -COPY --from=build /app/.next/standalone ./ -COPY --from=build /app/.next/static ./.next/static +# Copy necessary files from build stage +COPY --from=build /app/package.json ./ +COPY --from=build /app/tsconfig.json ./ +COPY --from=build /app/.next ./.next COPY --from=build /app/public ./public +COPY --from=build /app/src ./src +COPY --from=build /app/node_modules ./node_modules COPY --from=build /app/prisma ./prisma # Expose the port EXPOSE 3000 # Start the application -CMD ["bun", "server.js"] +CMD ["bun", "start"] diff --git a/next.config.ts b/next.config.ts index 14d6e3c3..20f68075 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,6 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { - output: 'standalone', serverExternalPackages: ['@elysiajs/static', 'elysia'], experimental: {}, allowedDevOrigins: [