File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ COPY --from=base /app ./
14
14
# Step 2: Copy the new project dependencies (generated by Hexabot CLI)
15
15
COPY package.json ./package.extra.json
16
16
17
- RUN node add-extra-deps.js
18
-
19
17
# Step 3: Install dependencies for both Hexabot API and new project
20
18
RUN npm i --package-lock
21
19
@@ -57,15 +55,17 @@ FROM node:18-alpine AS production
57
55
58
56
WORKDIR /app
59
57
60
- # Step 1: Copy necessary files from builder stage for production
61
- COPY --from=builder /app/package*.json ./
58
+ # Step 8: Copy necessary files from builder stage for production
59
+ COPY package.json ./package.extra.json
60
+
61
+ RUN node add-extra-deps.js
62
62
63
63
COPY --from=builder /app/patches ./patches
64
64
65
- # Step 2 : Install only production dependencies
66
- RUN npm i --only=production
65
+ # Step 9 : Install only production dependencies
66
+ RUN npm i --package-lock -- only=production
67
67
68
- # Step 3 : Copy the built application from builder
68
+ # Step 10 : Copy the built application from builder
69
69
COPY --from=builder /app/dist ./dist
70
70
71
71
# Set environment for production
Original file line number Diff line number Diff line change 1
1
# API & Common
2
- NODE_ENV = development
2
+ NODE_ENV = dev
3
3
APP_DOMAIN = localhost
4
4
SSL_EMAIL = hello@hexabot.ai
5
5
API_PORT = 4000
You can’t perform that action at this time.
0 commit comments