I suspect this is why some contributors kept accidentally including a new `codex-cli/package-lock.json` in their PRs. Note the `Dockerfile` still uses `npm` instead of `pnpm`, but that appears to be fine. (Probably nicer to globally install as few things as possible in the image.)
17 lines
401 B
Bash
Executable File
17 lines
401 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
|
|
}
|
|
pnpm install
|
|
pnpm run build
|
|
rm -rf ./dist/openai-codex-*.tgz
|
|
pnpm pack --pack-destination ./dist
|
|
mv ./dist/openai-codex-*.tgz ./dist/codex.tgz
|
|
docker build -t codex -f "./Dockerfile" .
|