Skip to content

Commit 3d0dacf

Browse files
Revert "Updated main v2"
1 parent 5d630c9 commit 3d0dacf

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ COPY --from=base /app ./
1414
# Step 2: Copy the new project dependencies (generated by Hexabot CLI)
1515
COPY package.json ./package.extra.json
1616

17-
RUN node add-extra-deps.js
18-
1917
# Step 3: Install dependencies for both Hexabot API and new project
2018
RUN npm i --package-lock
2119

@@ -57,15 +55,17 @@ FROM node:18-alpine AS production
5755

5856
WORKDIR /app
5957

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
6262

6363
COPY --from=builder /app/patches ./patches
6464

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
6767

68-
# Step 3: Copy the built application from builder
68+
# Step 10: Copy the built application from builder
6969
COPY --from=builder /app/dist ./dist
7070

7171
# Set environment for production

docker/.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# API & Common
2-
NODE_ENV=development
2+
NODE_ENV=dev
33
APP_DOMAIN=localhost
44
SSL_EMAIL=hello@hexabot.ai
55
API_PORT=4000

0 commit comments

Comments
 (0)