This commit is contained in:
parent
c66369f302
commit
bb8ff0de59
@ -20,9 +20,17 @@ fi
|
|||||||
|
|
||||||
pushd "${PROJECT_SOURCE_DIR}/support"
|
pushd "${PROJECT_SOURCE_DIR}/support"
|
||||||
cp -f ${PROJECT_SOURCE_DIR}/docker/${PROJECT_BUILD_ARCH}/${DOCKER_NAME} Dockerfile
|
cp -f ${PROJECT_SOURCE_DIR}/docker/${PROJECT_BUILD_ARCH}/${DOCKER_NAME} Dockerfile
|
||||||
docker build ${APP_VERSION_BUILD_ARGS} \
|
|
||||||
--build-arg NUM_JOBS=${NUM_JOBS} \
|
if [ "${PROJECT_BUILD_ARCH}" == "aarch64" ]; then
|
||||||
-t ${DOCKER_TAG} . || exit 1
|
docker build ${APP_VERSION_BUILD_ARGS} \
|
||||||
|
--platform linux/arm64 \
|
||||||
|
--build-arg NUM_JOBS=${NUM_JOBS} \
|
||||||
|
-t ${DOCKER_TAG} . || exit 1
|
||||||
|
else
|
||||||
|
docker build ${APP_VERSION_BUILD_ARGS} \
|
||||||
|
--build-arg NUM_JOBS=${NUM_JOBS} \
|
||||||
|
-t ${DOCKER_TAG} . || exit 1
|
||||||
|
fi
|
||||||
rm Dockerfile
|
rm Dockerfile
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user