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
|
2023-12-06 12:27:13 +00:00
|
|
|
MXE_SHA="0d21cf2e31d4e6c0"
|
2020-05-30 11:21:22 +00:00
|
|
|
SCRIPTPATH=$(dirname $0)
|
|
|
|
|
2020-10-28 21:19:45 +00:00
|
|
|
# version of the docker image
|
2023-12-06 12:27:13 +00:00
|
|
|
VERSION=3.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
|
2020-10-28 21:19:45 +00:00
|
|
|
docker build --squash -t subsurface/mxe-build-container:$VERSION --build-arg=mxe_sha=$MXE_SHA -f Dockerfile .
|
2020-05-30 11:21:22 +00:00
|
|
|
popd
|