Skip to content

Commit

Permalink
fxxx 22
Browse files Browse the repository at this point in the history
  • Loading branch information
azep-ninja committed Jan 1, 2025
1 parent 2076c33 commit 518c93c
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,26 @@ COPY agent ./agent
COPY scripts ./scripts

# Install dependencies and build the project
RUN pnpm install && \
pnpm build-docker && \
pnpm prune --prod
# RUN pnpm install && \
# pnpm build-docker && \
# pnpm prune --prod
# Install dependencies with fallback
RUN pnpm install --frozen-lockfile || \
(echo "Frozen lockfile install failed, trying without..." && \
pnpm install --no-frozen-lockfile) && \
pnpm list && \
echo "Dependencies installed successfully"

# Build with detailed logging
RUN pnpm build-docker || { \
echo "Build failed, showing detailed logs:"; \
find . -name "*.log" -exec cat {} \; ; \
exit 1; \
}

# Prune for production
RUN pnpm prune --prod && \
echo "Production pruning completed"

# Final stage
FROM node:23.3.0-slim
Expand Down

0 comments on commit 518c93c

Please sign in to comment.