We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在使用docker-compose up -d 出现问题
sudo docker-compose up -d
failed to compute cache-key...
The text was updated successfully, but these errors were encountered:
看起来您好像是直接下载 master.zip?所以导致 .git 文件夹不存在。
是否有试过 git clone?
Sorry, something went wrong.
哦,也有可能是你的 cwd 在 deployments 下面。
试试:
cd ~/Projects/Platypus docker compose -f deployments/docker-compose.yml up
使用git clone也一样,这里可以看到有.git文件夹
The issue comes from the fact that that stage of the Dockerfile requires the .git directory to be in the deployments directory.
.git
deployments
# Stage 1: Prepare source code FROM alpine/git as source WORKDIR /app COPY .git .git RUN git checkout .
So, to fix the issue, you need to copy the root .git directory to deployments directory as so:
cp -r .git deployments
Thank you so much for providing the solution. @ThomasRitaine
WangYihang
No branches or pull requests
Description
Reproduce
sudo docker-compose up -d
...
Expected behavior
Current behavior
Screenshots/Terminal log
Environments
The text was updated successfully, but these errors were encountered: