fix build

This commit is contained in:
9qeklajc
2025-10-26 00:28:59 +02:00
parent bcadf2961c
commit a516c2f04e
2 changed files with 3 additions and 7 deletions
+1 -1
View File
@@ -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: .
+2 -6
View File
@@ -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"]
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"]