mirror of
https://github.com/ImranR98/Obtainium.git
synced 2026-07-31 09:26:48 -04:00
17 lines
613 B
Bash
Executable File
17 lines
613 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build the toolchain image used by ./docker/builder.sh.
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
|
|
IMAGE=${IMAGE:-flutter-builder-obtainium}
|
|
STAMP=$(date +'%Y%m%d.%H%M%S')
|
|
|
|
# The Dockerfile COPYs nothing (the source tree is mounted at runtime), so use
|
|
# docker/ as the build context. This keeps the context tiny instead of shipping
|
|
# the whole repo — including the multi-GB .flutter submodule — to the daemon.
|
|
docker build \
|
|
-t "${IMAGE}:latest" \
|
|
-t "${IMAGE}:${STAMP}" \
|
|
-f "${SCRIPT_DIR}/Dockerfile" \
|
|
"${SCRIPT_DIR}"
|