2020-05-30 12:21:22 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
set -e
|
|
|
|
|
2020-10-28 14:19:45 -07:00
|
|
|
# known good MXE sha
|
2024-01-21 01:07:33 +13:00
|
|
|
MXE_SHA="c0bfefc57a00fdf6cb5278263e21a478e47b0bf5"
|
2020-05-30 12:21:22 +01:00
|
|
|
SCRIPTPATH=$(dirname $0)
|
|
|
|
|
2020-10-28 14:19:45 -07:00
|
|
|
# version of the docker image
|
2024-01-22 07:54:06 +13:00
|
|
|
VERSION=3.1.0
|
2020-10-28 14:19:45 -07:00
|
|
|
|
2020-05-30 12:21:22 +01:00
|
|
|
pushd $SCRIPTPATH
|
2020-10-30 11:28:00 -07:00
|
|
|
|
|
|
|
# we use the 'experimental' --squash argument to significantly reduce the size of the massively huge
|
|
|
|
# Docker container this produces
|
2024-01-22 07:54:06 +13:00
|
|
|
docker build -t subsurface/mxe-build:$VERSION --build-arg=mxe_sha=$MXE_SHA -f Dockerfile .
|
2023-12-06 13:20:20 -08:00
|
|
|
docker images
|
2020-05-30 12:21:22 +01:00
|
|
|
popd
|