@cybermem/cli 0.8.7 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
# Builder stage for native modules
|
|
2
|
+
FROM node:20-alpine AS builder
|
|
2
3
|
WORKDIR /app
|
|
4
|
+
RUN apk add --no-cache python3 make g++
|
|
5
|
+
COPY package.json ./
|
|
6
|
+
RUN npm install
|
|
7
|
+
|
|
8
|
+
# Production stage
|
|
9
|
+
FROM node:20-alpine AS runner
|
|
10
|
+
WORKDIR /app
|
|
11
|
+
RUN apk add --no-cache libc6-compat
|
|
12
|
+
COPY --from=builder /app/node_modules ./node_modules
|
|
3
13
|
COPY server.js .
|
|
14
|
+
COPY package.json .
|
|
15
|
+
|
|
4
16
|
EXPOSE 3001
|
|
5
17
|
CMD ["node", "server.js"]
|
package/package.json
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
# Builder stage for native modules
|
|
2
|
+
FROM node:20-alpine AS builder
|
|
2
3
|
WORKDIR /app
|
|
4
|
+
RUN apk add --no-cache python3 make g++
|
|
5
|
+
COPY package.json ./
|
|
6
|
+
RUN npm install
|
|
7
|
+
|
|
8
|
+
# Production stage
|
|
9
|
+
FROM node:20-alpine AS runner
|
|
10
|
+
WORKDIR /app
|
|
11
|
+
RUN apk add --no-cache libc6-compat
|
|
12
|
+
COPY --from=builder /app/node_modules ./node_modules
|
|
3
13
|
COPY server.js .
|
|
14
|
+
COPY package.json .
|
|
15
|
+
|
|
4
16
|
EXPOSE 3001
|
|
5
17
|
CMD ["node", "server.js"]
|