-
-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When deploying applications through AutoDeploy, Docker cannot update #1177
Comments
Most likely it's the dockerfile cache, this helps to make deployments take less time and gives the impression that it's a bug, if you could share your dockerfile to test it would be great, in v0.17.4 we added a flag to clear the cache so you wouldn't have this problem, can you try enabling this flag and retesting if you have the same problem? |
This is my Dockerfile. My project uses Turborepo
|
@Siumauricio I found |
When I turn off this switch, everything returns to normal |
Ok, I will turn off |
Did we figure out why exactly this happens? |
I couldn't reproduce it, but what I will do is the following:
If you still experience the same, you can do a little hack to invalidate the cache in your Dockerfile Add this line before you build the code |
To Reproduce
Create a new application through Dockerfile, trigger AutoDeploy through git push, everything works fine at the beginning, but after a few attempts, it will prompt that the deployment is successful, but the image is not updated.
Current vs. Expected behavior
Create a new application and trigger AutoDeploy through git push. Once built successfully, it can be replaced successfully in the first few attempts, but after a few attempts, it cannot be replaced.
But after clicking the Deploy button on the console to build successfully, it can be successfully replaced.
Provide environment information
Which area(s) are affected? (Select all that apply)
Docker
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
I have been using dokploy for a long time and it used to work fine. This problem only occurred after I updated to 0.17.5
Will you send a PR to fix it?
Maybe, need help
The text was updated successfully, but these errors were encountered: