chore: make all the docker stuff work

This commit is contained in:
Mythie
2025-02-14 14:53:01 +11:00
parent 1c4878e526
commit 113ab293bb
7 changed files with 49 additions and 188 deletions

View File

@ -3,7 +3,16 @@
# Exit on error.
set -eo pipefail
cd "$(dirname "$0")/.."
SCRIPT_DIR="$(readlink -f "$(dirname "$0")")"
WEB_APP_DIR="$SCRIPT_DIR/.."
# Store the original directory
ORIGINAL_DIR=$(pwd)
# Set up trap to ensure we return to original directory
trap 'cd "$ORIGINAL_DIR"' EXIT
cd "$WEB_APP_DIR"
start_time=$(date +%s)
@ -25,4 +34,4 @@ cp -r ../../packages/lib/translations build/server/hono/packages/lib/translation
# Time taken
end_time=$(date +%s)
echo "[Build]: Done in $((end_time - start_time)) seconds"
echo "[Build]: Done in $((end_time - start_time)) seconds"