SasikaA073 commited on
Commit
3f803ab
·
1 Parent(s): bc443ab

Update Dockerfile to use Node.js 20

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # Stage 1: Build Frontend
2
- FROM node:18-alpine AS frontend-builder
3
  WORKDIR /app/frontend
4
 
5
  # Install dependencies
@@ -23,9 +23,9 @@ RUN apt-get update && apt-get install -y \
23
  build-essential \
24
  && rm -rf /var/lib/apt/lists/*
25
 
26
- # Install Node.js 18 (required to run Next.js production server)
27
  # Using nodesource setup script
28
- RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - \
29
  && apt-get install -y nodejs
30
 
31
  WORKDIR /app
 
1
  # Stage 1: Build Frontend
2
+ FROM node:20-alpine AS frontend-builder
3
  WORKDIR /app/frontend
4
 
5
  # Install dependencies
 
23
  build-essential \
24
  && rm -rf /var/lib/apt/lists/*
25
 
26
+ # Install Node.js 20 (required to run Next.js production server)
27
  # Using nodesource setup script
28
+ RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
29
  && apt-get install -y nodejs
30
 
31
  WORKDIR /app