mirror of
https://github.com/Routstr/routstr-core.git
synced 2026-10-05 20:28:23 +00:00
fix build
This commit is contained in:
+1
-1
@@ -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
@@ -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"]
|
||||
Reference in New Issue
Block a user