Fix: Use COPY for start.sh instead of complex echo command
This commit is contained in:
@@ -70,8 +70,9 @@ USER astro
|
|||||||
# Expose Port
|
# Expose Port
|
||||||
EXPOSE 4321
|
EXPOSE 4321
|
||||||
|
|
||||||
# Create startup script that runs migrations then starts server
|
# Copy startup script and make executable
|
||||||
RUN echo '#!/bin/sh\necho "🔧 Running database migrations..."\nnode scripts/run-migrations.js || echo "⚠️ Migrations failed (continuing anyway)"\necho "🚀 Starting God Mode..."\nexec node ./dist/server/entry.mjs' > /app/start.sh && chmod +x /app/start.sh
|
COPY start.sh /app/start.sh
|
||||||
|
RUN chmod +x /app/start.sh
|
||||||
|
|
||||||
# Launch with migrations + server
|
# Launch with migrations + server
|
||||||
CMD ["/app/start.sh"]
|
CMD ["/app/start.sh"]
|
||||||
|
|||||||
Reference in New Issue
Block a user