File tree Expand file tree Collapse file tree 3 files changed +17
-816
lines changed
examples/express-together-llamaindex Expand file tree Collapse file tree 3 files changed +17
-816
lines changed Original file line number Diff line number Diff line change 1
1
# Build stage
2
- FROM node:20-bullseye-slim AS builder
2
+ FROM node:20-bullseye AS builder
3
3
4
4
WORKDIR /app
5
5
6
6
# Install pnpm
7
7
RUN npm install -g pnpm
8
8
9
+ # Copy package files and env file if it exists
10
+ COPY package*.json .env* ./
11
+
9
12
# Copy package files
10
13
COPY package*.json ./
11
14
@@ -20,7 +23,7 @@ COPY . .
20
23
RUN pnpm run build
21
24
22
25
# Production stage
23
- FROM node:20-bullseye-slim
26
+ FROM node:20-bullseye
24
27
25
28
WORKDIR /app
26
29
@@ -36,4 +39,4 @@ RUN pnpm install --prod
36
39
37
40
EXPOSE 8000
38
41
39
- CMD ["node " , "dist/server.js" ]
42
+ CMD ["pnpm" , "tsx " , "dist/server.js" ]
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " restack-examples-ts-express" ,
2
+ "name" : " restack-examples-ts-express-together-llamaindex " ,
3
3
"version" : " 0.0.1" ,
4
4
"description" : " Basic Express example" ,
5
5
"scripts" : {
6
6
"dev" : " tsx watch --include src src/server.ts" ,
7
7
"clean" : " rm -rf node_modules" ,
8
- "docker: build" : " docker build -t restack-express . " ,
9
- "docker:run " : " docker run -p 8000:8000 restack-express" ,
10
- "docker:dev " : " pnpm docker:build && pnpm docker:run " ,
11
- "restack-up " : " node restack_up.mjs "
8
+ "build" : " tsc --build " ,
9
+ "docker:build " : " docker build -t restack-express-together-llamaindex . " ,
10
+ "docker:run " : " docker run -p 8000:8000 --network restack-net --env-file .env --env RESTACK_ENGINE_ADDRESS=http://localhost:6233 restack-express-together-llamaindex " ,
11
+ "docker:dev " : " pnpm docker:build && pnpm docker:run "
12
12
},
13
13
"nodemonConfig" : {
14
14
"execMap" : {
34
34
"@restackio/restack-sdk-cloud-ts" : " ^1.0.16" ,
35
35
"@types/express" : " ^5.0.0" ,
36
36
"@types/node" : " ^20.16.9" ,
37
- "@typescript-eslint/eslint-plugin" : " ^8.13.0" ,
38
- "@typescript-eslint/parser" : " ^8.13.0" ,
39
- "eslint" : " ^9.14.0" ,
40
37
"ts-node" : " ^10.9.2" ,
41
38
"typescript" : " ^5.6.3"
42
39
}
You can’t perform that action at this time.
0 commit comments