Skip to content

Commit 6ca4c9e

Browse files
committed
build: simplify Dockerfile by removing unnecessary dependencies
Remove python3, make, and g++ as they are no longer needed for building native modules. Also switch to a lighter base image by removing the '-bullseye-slim' tag since the full node:18 image is sufficient.
1 parent 7db91bb commit 6ca4c9e

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

Dockerfile

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
FROM node:18-bullseye-slim
1+
FROM node:18
22

33
WORKDIR /app
44

5-
# Install build dependencies for native modules
6-
RUN apt-get update && apt-get install -y \
7-
python3 \
8-
make \
9-
g++ \
10-
&& rm -rf /var/lib/apt/lists/*
11-
125
COPY package*.json ./
136

14-
# Install dependencies with full rebuild
15-
RUN npm install --production --build-from-source
7+
RUN npm install --production
168

179
COPY server.js ./
1810

0 commit comments

Comments
 (0)