Just copy from the image in ddist

This ensures (with the help of Docker caching) that running
./dtest.sh && ./ddist.sh results in shipping the binary that was
actually tested.
This commit is contained in:
Thomas Orozco 2015-02-28 19:12:23 -05:00
parent 0b3e77da75
commit c35496874c
2 changed files with 2 additions and 2 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
./dist

View File

@ -13,7 +13,6 @@ NAME="${IMG}-dist"
BIN="tini"
docker build -t "${IMG}" .
docker run -it --name="${NAME}" --entrypoint="bash" --workdir="/tini" "${IMG}" "-c" "make clean && make"
docker run -it --name="${NAME}" --entrypoint="true" "${IMG}" true
docker cp "${NAME}:/tini/${BIN}" "${DIST_DIR}"
docker rm "${NAME}"