Skip to content

Commit be7c41d

Browse files
authored
fix: update remaining Dockerfiles to Node 24 (#1963)
* chore: update remaining Dockerfiles to Node 24 * fix: use --omit=dev for npm install with Node 24
1 parent a72ebe2 commit be7c41d

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.changeset/vast-hairs-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@asyncapi/cli': patch
3+
---
4+
5+
chore: bump Node.js version to 24 in remaining Dockerfiles

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:20-alpine AS build
1+
FROM node:24-alpine AS build
22

33
# Copy the source code
44
COPY ./ /tmp/source_code
@@ -25,7 +25,7 @@ RUN cp -r /tmp/source_code/bin /libraries
2525
# Remove everything inside /tmp
2626
RUN rm -rf /tmp/*
2727

28-
FROM node:20-alpine
28+
FROM node:24-alpine
2929

3030
# Set ARG to explicit value to build chosen version. Default is "latest"
3131
ARG ASYNCAPI_CLI_VERSION=
@@ -50,7 +50,7 @@ RUN apk --update add git chromium && \
5050
COPY --from=build /libraries /libraries
5151

5252
# Install the dependencies
53-
RUN cd /libraries && npm install --production --ignore-scripts
53+
RUN cd /libraries && npm install --omit=dev --ignore-scripts
5454

5555
# Create a script that runs the desired command
5656
RUN ln -s /libraries/bin/run_bin /usr/local/bin/asyncapi

src/apps/api/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# ---- Base Alpine with Node ----
2-
FROM node:20-alpine AS base
2+
FROM node:24-alpine AS base
33

44
# Install required system packages
55
RUN apk add --update nghttp2

0 commit comments

Comments
 (0)