File tree Expand file tree Collapse file tree 5 files changed +22
-14
lines changed Expand file tree Collapse file tree 5 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ platform:
8
8
trigger :
9
9
branch :
10
10
- main
11
+ - integration/chat
11
12
- a/kanopy
12
13
13
14
steps :
Original file line number Diff line number Diff line change @@ -4,14 +4,29 @@ FROM node:20-alpine
4
4
# Expects the context `./` to be the root of the monorepo
5
5
# and expects the package to be built
6
6
7
- COPY ./apps/chatbot-server ./ apps/chatbot-server
7
+ COPY ./apps/chatbot-server/ apps/chatbot-server/
8
8
9
- # Copy the node_modules directory from the root
10
- COPY node_modules ./node_modules
9
+ # Copy package files and workspace configuration
10
+ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml turbo.json ./
11
+
12
+ # Copy all required directories with their content
13
+ COPY tools/ tools/
14
+ COPY packages/ packages/
15
+
16
+ # Ensure the build scripts are executable
17
+ RUN chmod +x tools/build/scripts/build.sh
18
+ RUN chmod +x tools/build/scripts/build-ts.sh
19
+ RUN ls -la tools/build/scripts/
11
20
12
21
# Install pnpm globally
13
22
RUN npm install -g
[email protected]
14
23
24
+ # Install dependencies
25
+ RUN pnpm install --frozen-lockfile
26
+
27
+ # Build the server
28
+ RUN pnpm build --filter "lg-chatbot-server"
29
+
15
30
# Set the working directory to the chatbot-server
16
31
WORKDIR ./apps/chatbot-server
17
32
Original file line number Diff line number Diff line change 14
14
"ingest" : " pnpm build && ingest all --config ./dist/esm/ingest.config.js" ,
15
15
"dev" : " tsx src/index.ts" ,
16
16
"start" : " node dist/esm/index.js" ,
17
- "docker:build" : " pnpm run build && docker build -t chatbot-server --file ./Dockerfile ../.." ,
17
+ "docker:build" : " docker build -t chatbot-server --file ./Dockerfile ../.." ,
18
18
"docker:prune" : " docker builder prune --filter \" label=app=chatbot-server\" -f" ,
19
19
"docker:start" : " docker run -p 3030:3030 chatbot-server"
20
20
},
Original file line number Diff line number Diff line change 14
14
"module" : " dist/esm/index.js" ,
15
15
"types" : " ./dist/types/index.d.ts" ,
16
16
"scripts" : {
17
- "build" : " scripts/build.sh" ,
18
- "tsc" : " scripts/build-ts.sh"
17
+ "build" : " ./ scripts/build.sh" ,
18
+ "tsc" : " ./ scripts/build-ts.sh"
19
19
},
20
20
"dependencies" : {
21
21
"@babel/core" : " 7.24.3" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments