Skip to content

Commit 8b8de44

Browse files
committed
fx docker
1 parent 0742ce8 commit 8b8de44

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

Dockerfile

+6-9
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,16 @@ RUN ln -s /usr/bin/python3 /usr/bin/python
1414
# Set the working directory
1515
WORKDIR /app
1616

17-
# Copy package files first for better caching
17+
# Copy all workspace files first
1818
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
2519
COPY packages ./packages
20+
COPY agent ./agent
2621
COPY scripts ./scripts
2722

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
3027

3128
# Create a new stage for the final image
3229
FROM node:23.3.0-slim

0 commit comments

Comments
 (0)