Open vinniedaboi opened 1 year ago
看起来您好像是直接下载 master.zip?所以导致 .git 文件夹不存在。
是否有试过 git clone?
哦,也有可能是你的 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.
# 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
Description
Reproduce
sudo docker-compose up -d
...Expected behavior
Current behavior
Screenshots/Terminal log
Environments