Use buildarg to use correct parent variable

This commit is contained in:
Matthias 2020-09-20 15:17:54 +02:00
parent ab190f7a5b
commit b02c0904b6
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,7 @@ else
docker pull ${IMAGE_NAME}:${TAG}
docker build --cache-from ${IMAGE_NAME}:${TAG} -t freqtrade:${TAG} .
fi
docker build --cache-from freqtrade:${TAG} -t freqtrade:${TAG_PLOT} -f docker/Dockerfile.plot .
docker build --cache-from freqtrade:${TAG} --build-arg sourceimage=${TAG} -t freqtrade:${TAG_PLOT} -f docker/Dockerfile.plot .
if [ $? -ne 0 ]; then
echo "failed building image"

View File

@ -1,4 +1,5 @@
FROM freqtradeorg/freqtrade:develop
ARG sourceimage=develop
FROM freqtradeorg/freqtrade:${sourceimage}
# Install dependencies
COPY requirements-plot.txt /freqtrade/