Compare commits
3 Commits
21bde86a30
...
20956feb90
Author | SHA1 | Date |
---|---|---|
Sayantan Santra | 20956feb90 | |
Sayantan Santra | dfefff2703 | |
Sayantan Santra | 6d3d220cff |
|
@ -83,6 +83,7 @@ For building on `arm64` or `arm/v7`, use the following:
|
|||
```
|
||||
docker build . -t chhoto-url --build-arg target=<desired-target>
|
||||
```
|
||||
Make sure that the desired target is a `musl` one, since the docker image is built from `scratch`.
|
||||
For cross-compilation, take a look at the `Makefile`. It builds and pushes for `linux/amd64`, `linux/aarch64`
|
||||
and `linux/arm/v7` architectures. For any other architectures, open a discussion, and I'll try to help you out.
|
||||
1. Run the image
|
||||
|
|
|
@ -7,9 +7,10 @@ elif [ "$1" == "release" ]; then
|
|||
v_patch=$(cat actix/Cargo.toml | sed -rn 's/^version = "(.+)"$/\1/p')
|
||||
v_minor=$(echo $v_patch | sed -rn 's/^(.+\..+)\..+$/\1/p')
|
||||
v_major=$(echo $v_minor | sed -rn 's/^(.+)\..+$/\1/p')
|
||||
|
||||
|
||||
make build
|
||||
name="chhoto-url"
|
||||
docker buildx build --push --tag sintan1729/$name:$v_major --tag sintan1729/$v_minor: \
|
||||
--tag sintan1729/$name:$v_patch --tag sintan1729/$name:latest --platform linux/amd64,linux/arm64
|
||||
--tag sintan1729/$name:$v_patch --tag sintan1729/$name:latest --platform linux/amd64,linux/arm64,linux/arm/v7 -f Dockerfile.multiarch .
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue