Updated the Dockerfile for node 22. Updated the next.config to build a standalone output.

This commit is contained in:
Amritanshu Agrawal 2025-02-17 09:15:40 +00:00
parent 43d16cfeca
commit a6bcc5cc1c
2 changed files with 3 additions and 2 deletions

View File

@ -1,10 +1,11 @@
FROM node:20-alpine AS base
FROM node:22-alpine AS base
ARG NEXT_PUBLIC_INSTAGRAM_ACCESS_TOKEN
ARG NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY
ARG NEXT_PUBLIC_STORE_URL
ARG NEXT_PUBLIC_DEFAULT_REGION_ID
ARG NEXT_PRIVATE_BASE_URL
ARG NEXT_PUBLIC_RAZORPAY_KEY
# Install dependencies only when needed
FROM base AS deps

View File

@ -1,7 +1,7 @@
import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
// output: 'standalone',
output: 'standalone',
images: {
remotePatterns: [
{