diff --git a/compose.yml b/compose.yml index 526e14d6..2e7559a9 100644 --- a/compose.yml +++ b/compose.yml @@ -11,7 +11,7 @@ services: volumes: - ./ui_out:/output command: - ["sh", "-c", "echo 'UI built and ready' && tail -f /dev/null"] + ["sh", "-c", "mkdir -p /output && cp -r /app/built/. /output/ && echo 'UI build copied to mounted volume' && ls -la /output/ && echo 'UI built and ready' && tail -f /dev/null"] routstr: build: . diff --git a/ui/Dockerfile.build b/ui/Dockerfile.build index 484a64f5..ee7d50d7 100644 --- a/ui/Dockerfile.build +++ b/ui/Dockerfile.build @@ -30,12 +30,8 @@ ENV NEXT_TELEMETRY_DISABLED=1 RUN npm run build && \ echo "UI build completed at $(date)" -# Copy built files to the output directory -RUN mkdir -p /output && \ - cp -r /app/out/. /output/ - # Use the builder stage as the final stage FROM node:23-alpine WORKDIR /app -COPY --from=builder /output /output -CMD ["sh", "-c", "echo 'UI built and ready' && tail -f /dev/null"] \ No newline at end of file +COPY --from=builder /app/out /app/built +CMD ["sh", "-c", "mkdir -p /output && cp -r /app/built/. /output/ && echo 'UI build copied to mounted volume' && ls -la /output/ && echo 'UI built and ready' && tail -f /dev/null"] \ No newline at end of file