Skip to content

Commit 23be57a

Browse files
committed
Fixup builders 0100
1 parent b9a3dd9 commit 23be57a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

builders/Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77.0-alpine
1+
FROM --platform=linux/amd64 rust:1.77.0-alpine
22

33
RUN apk add --no-cache ca-certificates build-base
44

builders/Dockerfile.cross

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.77.0-bullseye
1+
FROM --platform=linux/amd64 rust:1.77.0-bullseye
22

33
# Install build dependencies
44
RUN apt-get update \

builders/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ See those DockerHub repos for all available versions of the builder images.
2828
- Rename builder image from cosmwasm/go-ext-builder to
2929
cosmwasm/libwasmvm-builder
3030
- Replace CentOS with Debian image for GNU linux builds
31+
- Build all images with `--platform=linux/amd64` to avoid accidental ARM builds
3132

3233
**Version 0019:**
3334

@@ -131,8 +132,9 @@ See those DockerHub repos for all available versions of the builder images.
131132

132133
## Usage
133134

134-
Create a local docker image, capable of cross-compling linux and macos dynamic
135-
libs:
135+
Create the Docker images, capable of cross-compling Linux and MacOS dynamic
136+
libs. As the builder images are all x86_64, it can be slow and memory intense to
137+
do this on a different architecture:
136138

137139
```sh
138140
(cd builders && make docker-images)

0 commit comments

Comments
 (0)