-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
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
Default Dockerfile build fails #9261
Comments
I have same problem. +1 |
Mage uses git, so we should install git before run mage. Closes #9261
@bep @hitzhangjie The git install helps but the build still doesn't finish:
|
@lud0v1c don't git clone the repo? |
@ZhaoUncle no, you can see it in the output. git is just installed. I think it's related with the WORKDIR set in the beginning, but running the Dockerfile as-is will just fail. |
I don't get why this issue was closed, the build is still failing @bep. Anyone can try and build it to see the outcome. |
You need to clone the code to your local to execute docker build instead of copying dockerfile directly, otherwise this error will appear, please carefully read the instructions and dockerfile commands. |
@ZhaoUncle 🤦 I was running this in a separate environment from the repository.. Sorry about that. Yes things run fine now, it was just the git install missing! |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
What version of Hugo are you using (
hugo version
)?Additionally running Ubuntu 20.04 and:
Does this issue reproduce with the latest release?
Yes.
I was trying to build a container with the default Dockerfile but it fails:
I did a little research, and if in the Dockerfile I change ENV GO111MODULE=on to =auto or =off, this step no longer fails. However, more issues arise in the next step:
Even if I add git to the package installation, it will still fail running mage:
The text was updated successfully, but these errors were encountered: