Skip to content

Commit c15f878

Browse files
committed
dockerfile move python etc to build stage
1 parent 23e41f4 commit c15f878

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
FROM node:22.11.0-alpine AS builder
33
WORKDIR /app
44

5+
# Install Python and build tools
6+
RUN apk add --no-cache python3 make g++ linux-headers eudev-dev
7+
58
# Copy package.json and package-lock.json to leverage layer caching
69
COPY package.json package-lock.json ./
710
RUN npm install
@@ -18,9 +21,6 @@ WORKDIR /app
1821
RUN apk add --no-cache curl && \
1922
adduser -S nodeuser -u 1001
2023

21-
# Install Python and build tools
22-
RUN apk add --no-cache python3 make g++ linux-headers eudev-dev
23-
2424
# Copy only necessary files from builder
2525
COPY --from=builder /app/node_modules ./node_modules
2626
COPY --from=builder /app/build ./build

0 commit comments

Comments
 (0)