PrimeSwift/Dockerfile fail to build #993
Unanswered
EdisonTheFox
asked this question in
Q&A
Replies: 1 comment 3 replies
-
@EdisonTheFox I can't repro this, I will include build output from my machine below. I will therefore convert this issue to a Q&A discussion. Note that all solutions in this repository are targeting the Linux platform. Are you maybe trying to build the solution on another platform, like Windows? Build output, as promised: ~/source/Primes/PrimeSwift/solution_1$ docker build -t swift1 .
[+] Building 74.6s (9/9) FINISHED docker:default
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 387B 0.0s
=> [internal] load metadata for docker.io/library/swift:5.4.2 1.8s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 74B 0.0s
=> [1/4] FROM docker.io/library/swift:5.4.2@sha256:4ca92068fded458af995c7667bf497d7ec2f31f0fc7c23be44e7a86e643145da 24.8s
=> => resolve docker.io/library/swift:5.4.2@sha256:4ca92068fded458af995c7667bf497d7ec2f31f0fc7c23be44e7a86e643145da 0.0s
=> => sha256:a163b6b7d5eadca5d7e4b1696af00c932f7fd9f64d75fb732d2d4c49fe25ee27 955B / 955B 0.0s
=> => sha256:349cf61d73b60d9ff8b7ae6c8f25748800b29e70807f38afaf33b369d71b9aa0 5.25kB / 5.25kB 0.0s
=> => sha256:e4ca327ec0e73c737201b7a6d7b2df779a3ccf34fe9cf1b0c031e767f6464240 26.71MB / 26.71MB 0.7s
=> => sha256:2e76d16250a8f57d79710747137a242f611fee2834b1e442c917d91153604c77 124.69MB / 124.69MB 5.2s
=> => sha256:fa829ddb8f6ec516b6df83109944f57a760ed2bb0e67fa85f788d393314b8ec6 521.05MB / 521.05MB 13.6s
=> => sha256:4ca92068fded458af995c7667bf497d7ec2f31f0fc7c23be44e7a86e643145da 319B / 319B 0.0s
=> => extracting sha256:e4ca327ec0e73c737201b7a6d7b2df779a3ccf34fe9cf1b0c031e767f6464240 1.0s
=> => extracting sha256:2e76d16250a8f57d79710747137a242f611fee2834b1e442c917d91153604c77 4.5s
=> => extracting sha256:fa829ddb8f6ec516b6df83109944f57a760ed2bb0e67fa85f788d393314b8ec6 10.8s
=> [internal] load build context 0.0s
=> => transferring context: 21.16kB 0.0s
=> [2/4] WORKDIR /opt/app 0.4s
=> [3/4] COPY . . 0.1s
=> [4/4] RUN swift build --configuration release -Xswiftc -O --package-path PrimeSwift_1bit_u8 && swift build --configuration relea 46.9s
=> exporting to image 0.3s
=> => exporting layers 0.3s
=> => writing image sha256:af696327633d42c50c743b134016d80467d1204e682759f497b561d704e0a1fb 0.0s
=> => naming to docker.io/library/swift1 0.0s
~/source/Primes/PrimeSwift/solution_1$ |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
PrimeSwift Dockerfile fails to build with the following output in Docker Desktop:
And present the following Error message:
swift:5.4.2: failed to resolve source metadata for docker.io/library/swift:5.4.2: no match for platform in manifest: not found
Beta Was this translation helpful? Give feedback.
All reactions