Skip to content

Commit 94a410f

Browse files
committed
chore: Minor fixes
1 parent 331adf1 commit 94a410f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker/api/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Stage 1: Install dependencies
2-
FROM node:20-alpine AS dependencies
2+
FROM node:24-slim AS dependencies
33

44
# Maintainer information
55
LABEL org.opencontainers.image.authors="Tan Jin (tjtanjin)"
@@ -14,7 +14,7 @@ COPY ./package.json ./
1414
RUN 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
2020
WORKDIR /app
@@ -33,7 +33,7 @@ COPY ./package.json ./
3333
RUN 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
3939
WORKDIR /app
@@ -45,7 +45,7 @@ COPY --from=build /app/build ./build
4545
COPY --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
5151
CMD ["node", "./build/api/index.js"]

0 commit comments

Comments
 (0)