Skip to content

Commit cd6b5a1

Browse files
committed
Update multiarch build to use docker-container as build driver
1 parent fc8dad5 commit cd6b5a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,8 @@ else
195195
endif
196196
docker run --rm $(common_rust_args) \
197197
--entrypoint=bash $(BUILD_IMAGE_TAG) -c './image/archive_dependencies.sh'
198-
docker buildx build --platform=linux/amd64,linux/arm64 -t $(IMAGE_TAG) -f $(project_path)/image/Dockerfile $(project_path)
198+
docker buildx create --use --driver=docker-container --name container --platform=linux/amd64,linux/arm64
199+
docker buildx build --platform=linux/amd64,linux/arm64 -t $(IMAGE_TAG) -f $(project_path)/image/Dockerfile $(project_path) --builder=container
199200

200201
# Generates the HTML report of all open source licence dependencies
201202
build-licence-report: ensure-build-image

image/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
FROM gcr.io/distroless/cc-debian12:nonroot as base
15+
FROM gcr.io/distroless/cc-debian12:nonroot AS base
1616
WORKDIR /
1717
ARG TARGETPLATFORM
1818
COPY ./license.html .

0 commit comments

Comments
 (0)