mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
fix: Add error handling to Dockerfile.web build stage
This commit is contained in:
@@ -28,7 +28,10 @@ ARG VITE_API_URL
|
||||
ENV VITE_API_URL=${VITE_API_URL}
|
||||
COPY --from=installer /app/ .
|
||||
COPY --from=pruner /app/out/full/ .
|
||||
RUN pnpm turbo build --filter="${TURBO_FILTER}..."
|
||||
RUN pnpm turbo build --filter="${TURBO_FILTER}..." || \
|
||||
(echo "Build failed for ${TURBO_FILTER}" && \
|
||||
ls -la /app/${APP_PATH}/ 2>/dev/null || echo "App path does not exist" && \
|
||||
exit 1)
|
||||
|
||||
FROM nginx:alpine AS runner
|
||||
ARG APP_PATH
|
||||
|
||||
Reference in New Issue
Block a user