Skip to content

Commit

Permalink
fix: set base image to node:20 for building nest.js CRUD app
Browse files Browse the repository at this point in the history
이은상 committed Dec 18, 2024
1 parent 7b0d28d commit ecbbbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3_middlewares/2_nest_js/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Phase 1: Build
FROM node:18-alpine AS build
FROM node:20 AS builder

# Set working directory inside the container
WORKDIR /app
@@ -17,7 +17,7 @@ COPY . .
RUN npm run build

# Phase 2: Runtime
FROM node:18-alpine AS runtime
FROM node:20-alpine AS runtime

# Set working directory inside the container
WORKDIR /app

0 comments on commit ecbbbb5

Please sign in to comment.