Skip to content

Commit 6df15c8

Browse files
committed
pointed at default dockerfile
1 parent ac645a5 commit 6df15c8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

scripts/multiplatform-docker-build.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ docker buildx build \
117117
--platform "$PLATFORMS" \
118118
--tag "$IMAGE_TAG" \
119119
--output "type=oci,dest=${ARCHIVE_PATH}" \
120-
-f Dockerfile.uv \
120+
-f Dockerfile \
121121
${REPO_DIR}
122122

123123
print_success "Multi-platform images built and exported"
@@ -162,33 +162,33 @@ while IFS=' ' read -r platform digest; do
162162
if [ -z "$platform" ] || [ -z "$digest" ]; then
163163
continue
164164
fi
165-
165+
166166
MANIFEST_HASH=$(echo "$digest" | cut -d: -f2)
167167
MANIFEST_FILE="blobs/sha256/$MANIFEST_HASH"
168-
168+
169169
if [ ! -f "$MANIFEST_FILE" ]; then
170170
print_warning "Manifest file not found for $platform: $MANIFEST_FILE"
171171
continue
172172
fi
173-
173+
174174
# Calculate total size of all layers for this platform
175175
PLATFORM_SIZE=$(jq -r '.layers[].size' "$MANIFEST_FILE" | awk '{sum += $1} END {print sum}')
176-
176+
177177
# Convert to MB (using awk instead of bc for better compatibility)
178178
PLATFORM_SIZE_MB=$(echo "$PLATFORM_SIZE" | awk '{printf "%.2f", $1/1024/1024}')
179-
179+
180180
printf "%-20s %12s MB\n" "$platform" "$PLATFORM_SIZE_MB"
181-
181+
182182
TOTAL_SIZE=$((TOTAL_SIZE + PLATFORM_SIZE))
183183
PLATFORM_COUNT=$((PLATFORM_COUNT + 1))
184-
184+
185185
done <<< "$PLATFORM_MANIFESTS"
186186

187187
# Calculate average
188188
if [ $PLATFORM_COUNT -gt 0 ]; then
189189
AVERAGE_SIZE_MB=$(echo "$TOTAL_SIZE $PLATFORM_COUNT" | awk '{printf "%.2f", $1/$2/1024/1024}')
190190
ARCHIVE_SIZE_MB=$(du -m "$ARCHIVE_NAME" | cut -f1)
191-
191+
192192
echo
193193
echo "Summary:"
194194
echo "--------"

0 commit comments

Comments
 (0)