diff --git a/Dockerfile b/Dockerfile index 33637d2..63f063c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,4 +22,4 @@ COPY --from=builder /app/next.config.mjs ./next.config.mjs EXPOSE 3000 -CMD ["npm", "run", "start", "--", "--hostname", "0.0.0.0", "--port", "3000"] +CMD ["/bin/sh", "-c", "npm run db:migrate && npm run start -- --hostname 0.0.0.0 --port 3000"]