Chore: Update Docker setup and walkthrough
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user