Colab User commited on
Commit
71f35dd
·
1 Parent(s): bcc439f

Initial commit: Deploy rasa-engine API server

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -16,6 +16,7 @@ COPY artifacts artifacts/
16
  COPY lib lib/
17
 
18
  # Install dependencies for all workspace packages
 
19
  RUN pnpm install --no-frozen-lockfile
20
 
21
  # Run codegen for @workspace/api-spec to generate @workspace/api-zod
@@ -23,6 +24,9 @@ RUN pnpm install --no-frozen-lockfile
23
  # that pnpm can find within the workspace (e.g., artifacts/api-zod).
24
  RUN pnpm --filter=@workspace/api-spec run codegen
25
 
 
 
 
26
  # Build the api-server project. Now @workspace/api-zod should be available.
27
  RUN pnpm run build --filter=@workspace/api-server
28
 
 
16
  COPY lib lib/
17
 
18
  # Install dependencies for all workspace packages
19
+ # This first install will get 'orval' which is a devDependency for @workspace/api-spec
20
  RUN pnpm install --no-frozen-lockfile
21
 
22
  # Run codegen for @workspace/api-spec to generate @workspace/api-zod
 
24
  # that pnpm can find within the workspace (e.g., artifacts/api-zod).
25
  RUN pnpm --filter=@workspace/api-spec run codegen
26
 
27
+ # Re-run pnpm install to ensure the newly generated @workspace/api-zod package is linked
28
+ RUN pnpm install --no-frozen-lockfile
29
+
30
  # Build the api-server project. Now @workspace/api-zod should be available.
31
  RUN pnpm run build --filter=@workspace/api-server
32