Fix: Use COPY for start.sh instead of complex echo command

This commit is contained in:
cawcenter
2025-12-16 11:38:09 -05:00
parent b1acc50c7f
commit d364e85932
2 changed files with 8 additions and 2 deletions

View File

@@ -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"]