forked from GeneBO98/tradetally
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-docker.sh
More file actions
executable file
·45 lines (37 loc) · 1.37 KB
/
build-docker.sh
File metadata and controls
executable file
·45 lines (37 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# Build and publish TradeTally Docker image
# This script builds the Docker image with all latest features including:
# - Trade chart visualization (Alpha Vantage + lightweight-charts)
# - Short position P&L fixes
# - All API integrations (Finnhub, Gemini, Alpha Vantage)
set -e
echo "[BUILD] Building TradeTally Docker image..."
# Get version from package.json or use latest
VERSION=${1:-latest}
IMAGE_NAME="potentialmidas/tradetally"
echo "[INFO] Building image: ${IMAGE_NAME}:${VERSION}"
# Build the Docker image
docker build -t "${IMAGE_NAME}:${VERSION}" .
# Also tag as latest if building a specific version
if [ "$VERSION" != "latest" ]; then
docker tag "${IMAGE_NAME}:${VERSION}" "${IMAGE_NAME}:latest"
fi
echo "[SUCCESS] Build complete!"
echo ""
echo "[DEPLOY] To publish to Docker Hub:"
echo " docker push ${IMAGE_NAME}:${VERSION}"
if [ "$VERSION" != "latest" ]; then
echo " docker push ${IMAGE_NAME}:latest"
fi
echo ""
echo "[TEST] To test locally:"
echo " docker-compose up -d"
echo ""
echo "[INFO] Image includes:"
echo " [*] Trade chart visualization (Alpha Vantage API)"
echo " [*] Interactive candlestick charts (lightweight-charts v5)"
echo " [*] Real-time quotes (Finnhub API)"
echo " [*] CUSIP resolution (Finnhub + Gemini AI)"
echo " [*] Short position P&L fixes"
echo " [*] Mobile app support"
echo " [*] All latest features from v1.1.2+"