Skip to content

Commit 7e57543

Browse files
authored
Specify platform when building Docker images (#39)
Without this, cross-compiling between a host and target with different CPU architectures when copying from Docker fails due to pulling the wrong Docker image.
1 parent a54c573 commit 7e57543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSDKGenerator/Generator/SwiftSDKGenerator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public actor SwiftSDKGenerator {
141141
at: tmp.appending("Dockerfile"),
142142
Data(
143143
"""
144-
FROM \(baseImage)
144+
FROM --platform=linux/\(self.targetTriple.cpu.debianConventionName) \(baseImage)
145145
""".utf8
146146
)
147147
)

0 commit comments

Comments
 (0)