diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..90f0b87 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +FROM node:22-alpine AS base + +FROM base AS deps +RUN apk add --no-cache libc6-compat +WORKDIR /app +COPY package*.json package-lock*.json ./ +RUN npm ci --omit=dev +RUN npm install @tailwindcss/oxide-linux-x64-musl + +FROM base AS builder +WORKDIR /app +COPY --from=deps /app/node_modules ./node_modules +COPY . . +RUN npm run build + +FROM base AS production + +WORKDIR /app + +COPY --from=builder /app/.next/standalone ./ +COPY --from=builder /app/.next/static ./.next/static +COPY --from=builder /app/public ./public + +EXPOSE 3000 + +CMD ["node", "server.js"] diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..52f590d --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,7 @@ +services: + sranalysis: + build: + context: . + dockerfile: Dockerfile + container_name: sranalysis + restart: unless-stopped \ No newline at end of file diff --git a/next.config.ts b/next.config.ts index 4a5222c..3d38bea 100644 --- a/next.config.ts +++ b/next.config.ts @@ -5,6 +5,25 @@ import type { NextConfig } from "next"; const withNextIntl = createNextIntlPlugin() const nextConfig: NextConfig = { + reactStrictMode: false, + output: 'standalone', + images: { + remotePatterns: [ + { + protocol: 'https', + hostname: 'localhost', + pathname: '**', + }, + { + protocol: 'http', + hostname: 'localhost', + pathname: '**', + } + ], + }, + eslint: { + ignoreDuringBuilds: true, + }, async rewrites() { return [ {