Chore: Update Docker setup and walkthrough

This commit is contained in:
Hördle Bot
2025-11-22 11:56:22 +01:00
parent 8c720e287f
commit 15746f404a
4 changed files with 64 additions and 39 deletions

View File

@@ -63,8 +63,7 @@ ENV PORT 3000
ENV HOSTNAME "0.0.0.0"
# Start command: migrate DB and start server
# Note: In production, migrations should ideally be run in a separate step or init container,
# but for simplicity with SQLite we can run push here or assume the volume has the DB.
# We'll use a custom start script or just run server, assuming user handles migration or we use prisma db push on start.
# Let's use a simple entrypoint script to ensure DB exists.
CMD ["node", "server.js"]
COPY --from=builder --chown=nextjs:nodejs /app/scripts/docker-entrypoint.sh ./scripts/docker-entrypoint.sh
RUN chmod +x ./scripts/docker-entrypoint.sh
CMD ["./scripts/docker-entrypoint.sh"]