mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
* Fix Docker container scripts Signed-off-by:: Eric Burke <[email protected]> * Build codex TGZ * fix run_in_container --------- Co-authored-by: Hanzo Dev <[email protected]>
17 lines
398 B
Bash
Executable File
17 lines
398 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR=$(realpath "$(dirname "$0")")
|
|
trap "popd >> /dev/null" EXIT
|
|
pushd "$SCRIPT_DIR/.." >> /dev/null || {
|
|
echo "Error: Failed to change directory to $SCRIPT_DIR/.."
|
|
exit 1
|
|
}
|
|
npm install
|
|
npm run build
|
|
rm -rf ./dist/openai-codex-*.tgz
|
|
npm pack --pack-destination ./dist
|
|
mv ./dist/openai-codex-*.tgz ./dist/codex.tgz
|
|
docker build -t codex -f "./Dockerfile" .
|