lightning-terminal/app/gen_app_docker.sh
Oliver Gugger fc77836204
make+app: add dockerized builder for app
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.
2024-10-24 11:17:49 +02:00

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