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 4321
|
||||
|
||||
# Create startup script that runs migrations then starts server
|
||||
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 startup script and make executable
|
||||
COPY start.sh /app/start.sh
|
||||
RUN chmod +x /app/start.sh
|
||||
|
||||
# Launch with migrations + server
|
||||
CMD ["/app/start.sh"]
|
||||
|
||||
Reference in New Issue
Block a user