Commit 8b8de44 1 parent 0742ce8 commit 8b8de44 Copy full SHA for 8b8de44
File tree 1 file changed +6
-9
lines changed
1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,16 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
14
14
# Set the working directory
15
15
WORKDIR /app
16
16
17
- # Copy package files first for better caching
17
+ # Copy all workspace files first
18
18
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc turbo.json ./
19
-
20
- # Install dependencies and build the project
21
- RUN pnpm install
22
-
23
- # Copy the rest of the application code
24
- COPY agent ./agent
25
19
COPY packages ./packages
20
+ COPY agent ./agent
26
21
COPY scripts ./scripts
27
22
28
- # Build the project
29
- RUN pnpm build-docker && pnpm prune --prod
23
+ # Install dependencies and build the project
24
+ RUN pnpm install && \
25
+ pnpm build-docker && \
26
+ pnpm prune --prod
30
27
31
28
# Create a new stage for the final image
32
29
FROM node:23.3.0-slim
You can’t perform that action at this time.
0 commit comments