Independent FastAPI backend for the MaskanX agentic growth platform. Includes the agent runtime, MCP client integrations (Meta Ads, LinkedIn, HubSpot, Tavily, Exa, xAI, Citedy, image generation), PostgreSQL storage for chats and cron jobs, provider and secret management, and the CLI. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
# Build the independent MaskanX backend image.
|
|
# Run from repo root: bash scripts/docker_build.sh [IMAGE_TAG] [EXTRA_ARGS...]
|
|
# Example: bash scripts/docker_build.sh maskanx:latest
|
|
# bash scripts/docker_build.sh myreg/maskanx:v1 --no-cache
|
|
#
|
|
# By default the Docker image excludes imessage and discord channels.
|
|
# Override via:
|
|
# MASKANX_ENABLED_CHANNELS=imessage,discord,dingtalk,feishu,qq,console \
|
|
# bash scripts/docker_build.sh
|
|
set -e
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$REPO_ROOT"
|
|
|
|
DOCKERFILE="${DOCKERFILE:-$REPO_ROOT/Dockerfile}"
|
|
TAG="${1:-maskanx-backend:latest}"
|
|
shift || true
|
|
|
|
# Channels to include in the image (default: exclude imessage & discord).
|
|
ENABLED_CHANNELS="${MASKANX_ENABLED_CHANNELS:-dingtalk,feishu,qq,console}"
|
|
|
|
echo "[docker_build] Building image: $TAG (Dockerfile: $DOCKERFILE)"
|
|
docker build -f "$DOCKERFILE" \
|
|
--build-arg MASKANX_ENABLED_CHANNELS="$ENABLED_CHANNELS" \
|
|
-t "$TAG" "$@" .
|
|
echo "[docker_build] Done."
|
|
echo "[docker_build] MaskanX app port: 8088 (default). Override with -e MASKANX_PORT=<port>."
|
|
echo "[docker_build] Run: docker run -p 8088:8088 $TAG"
|
|
echo "[docker_build] Or: docker run -e MASKANX_PORT=3000 -p 3000:3000 $TAG"
|