mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-08 16:59:59 +00:00
13 lines
321 B
Bash
Executable File
13 lines
321 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
ENV_FILE="${ROOT_DIR}/.env"
|
|
|
|
if [[ ! -f "${ENV_FILE}" ]]; then
|
|
ENV_FILE="${ROOT_DIR}/.env.example"
|
|
echo "Using ${ENV_FILE} because .env is not present."
|
|
fi
|
|
|
|
exec docker compose --env-file "${ENV_FILE}" up --build "$@"
|