1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-28 17:03:58 +08:00

ci: Fix lack of commit hash during the build

git repo requires to have objects directory which I have missed.

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera
2017-02-17 13:24:45 +01:00
parent 765fb0f612
commit d060d87dd9

View File

@ -37,9 +37,10 @@ USER user
RUN make -f mk/gx.mk gx-deps
USER root
COPY . $SRC_PATH/
RUN chown -R user $GOPATH
COPY . $SRC_PATH
RUN chown -R user:user $GOPATH
USER user
RUN make cmd/ipfs/ipfs #populate go cache
# mkdir .git/objects is required for git to detect repo
RUN mkdir .git/objects && make cmd/ipfs/ipfs #populate go cache
CMD ["/bin/bash", "-c", "trap : TERM INT; sleep infinity & wait"]