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