We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23e41f4 commit c15f878Copy full SHA for c15f878
Dockerfile
@@ -2,6 +2,9 @@
2
FROM node:22.11.0-alpine AS builder
3
WORKDIR /app
4
5
+# Install Python and build tools
6
+RUN apk add --no-cache python3 make g++ linux-headers eudev-dev
7
+
8
# Copy package.json and package-lock.json to leverage layer caching
9
COPY package.json package-lock.json ./
10
RUN npm install
@@ -18,9 +21,6 @@ WORKDIR /app
18
21
RUN apk add --no-cache curl && \
19
22
adduser -S nodeuser -u 1001
20
23
-# Install Python and build tools
-RUN apk add --no-cache python3 make g++ linux-headers eudev-dev
-
24
# Copy only necessary files from builder
25
COPY --from=builder /app/node_modules ./node_modules
26
COPY --from=builder /app/build ./build
0 commit comments