mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
We dockerize the app build and use that for both the docker build _AND_ the normal build to make sure the static content is fully reproducible across different systems.
16 lines
354 B
Bash
Executable file
16 lines
354 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# Directory of the script file, independent of where it's called from.
|
|
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
|
|
|
echo "Building app compiler docker image..."
|
|
docker build -q -t lit-app-builder .
|
|
|
|
echo "Compiling app files..."
|
|
docker run \
|
|
--rm \
|
|
--user $(id -u):$(id -g) \
|
|
-v "$DIR/../:/build" \
|
|
lit-app-builder
|