Closed gabosvk closed 1 week ago
Hello @gabosvk thanks for creating the issue. I think this problem isn't specific to Refine, but probably with your app configuration, dependencies or CI process. You can ask AI Chatbot in our documentation to get some help.
Closing the issue fornow, but if you can pin down issue to a some specific problem with Refine code, you can re-open the issue.
Describe the bug
Building refine app for production in docker gets stuck for dozens of minutes
Steps To Reproduce
Expected behavior
Creating docker image finishes shortly after npm run build
Packages
"@refinedev/antd": "^5.44.0", "@refinedev/cli": "^2.16.39", "@refinedev/core": "^4.56.0", "@refinedev/devtools": "^1.2.9", "@refinedev/inferencer": "^4.7.1", "@refinedev/kbar": "^1.3.12", "@refinedev/react-router-v6": "^4.6.0", "@refinedev/simple-rest": "^5.0.8",
Additional Context
The whole application build and deployment is part of a CICD pipeline defined in GitLab. Docker images are built using kaniko. Every time a build is executed, a new build container is spawned where the Dockerfile instructions are being executed by kaniko.
The application finishes the build phase (in app. 30 seconds) with the following output:
After this point it gets stuck for 15-20 minutes a
When exploring the container where the kaniko build is running I see a process node /app/refine/node_modules/.bin/refine build still hanging there even after the build has finished based on log output - therefore I assume the refine build can't finish for some reason and continue with rest of the dockerfile instructions.