#!/bin/sh
set -eu

export HWLAB_SERVICE_ID=hwlab-hwpod-worker
export HWLAB_SERVICE_ENTRYPOINT=cmd/hwlab-hwpod-worker/main.ts
export HWPOD_WORKER_HEALTH_PORT="${HWPOD_WORKER_HEALTH_PORT:?HWPOD_WORKER_HEALTH_PORT is required}"
export PORT="$HWPOD_WORKER_HEALTH_PORT"

exec "${HWLAB_BUN_COMMAND:-bun}" run cmd/hwlab-hwpod-worker/main.ts
