From a6bcc5cc1c8ca8523ee0e6fa1d451902b55fa490 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Mon, 17 Feb 2025 09:15:40 +0000 Subject: [PATCH] Updated the Dockerfile for node 22. Updated the next.config to build a standalone output. --- Dockerfile | 3 ++- next.config.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6819399..32baef2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/next.config.ts b/next.config.ts index 90d0c87..b6c8ef0 100644 --- a/next.config.ts +++ b/next.config.ts @@ -1,7 +1,7 @@ import type { NextConfig } from 'next'; const nextConfig: NextConfig = { - // output: 'standalone', + output: 'standalone', images: { remotePatterns: [ {