Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tesseract_core/sdk/templates/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
# SPDX-License-Identifier: Apache-2.0

# Stage 1: Build Python environment and install requirements
# For "native", pin to $BUILDPLATFORM (the host platform BuildKit runs on) so the
# base image manifest is re-resolved for the host architecture instead of reusing a
# wrong-arch image that may already be in the local cache.
{% if config.build_config.target_platform.strip() == "native" %}
FROM {{ config.build_config.base_image }} AS build_stage
FROM --platform=$BUILDPLATFORM {{ config.build_config.base_image }} AS build_stage
{% else %}
FROM --platform={{ config.build_config.target_platform }} {{ config.build_config.base_image }} AS build_stage
{% endif %}
Expand Down
Loading