File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11# Stage 1: Install dependencies
2- FROM node:20-alpine AS dependencies
2+ FROM node:24-slim AS dependencies
33
44# Maintainer information
55LABEL org.opencontainers.image.authors="Tan Jin (tjtanjin)"
@@ -14,7 +14,7 @@ COPY ./package.json ./
1414RUN npm install
1515
1616# Stage 2: Build the application
17- FROM node:20-alpine AS build
17+ FROM node:24-slim AS build
1818
1919# Set the working directory
2020WORKDIR /app
@@ -33,7 +33,7 @@ COPY ./package.json ./
3333RUN npm run build
3434
3535# Stage 3: Create the final image
36- FROM node:20-alpine
36+ FROM node:24-slim
3737
3838# Set the working directory inside the container
3939WORKDIR /app
@@ -45,7 +45,7 @@ COPY --from=build /app/build ./build
4545COPY --from=build /app/node_modules ./node_modules
4646
4747# Copy additional files needed for runtime
48- COPY package.json ./
48+ COPY ./ package.json ./
4949
5050# Start the application
5151CMD ["node" , "./build/api/index.js" ]
You can’t perform that action at this time.
0 commit comments