File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed
Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # Build Docker Express script
4+ # This script builds the BitGo Express Docker image
5+
6+ set -e
7+
8+ echo " Building Docker Express image..."
9+
10+ # Update dockerfile first
11+ yarn update-dockerfile
12+
13+ # Build Docker image using podman (or docker if podman not available)
14+ if command -v podman & > /dev/null; then
15+ echo " Using podman to build image..."
16+ podman build --platform=linux/amd64 \
17+ -t bitgo/express:latest \
18+ -t bitgo/express:$( jq -r .version < modules/express/package.json) \
19+ .
20+ elif command -v docker & > /dev/null; then
21+ echo " Using docker to build image..."
22+ docker build --platform=linux/amd64 \
23+ -t bitgo/express:latest \
24+ -t bitgo/express:$( jq -r .version < modules/express/package.json) \
25+ .
26+ else
27+ echo " Error: Neither podman nor docker is available"
28+ exit 1
29+ fi
30+
31+ echo " Docker Express image built successfully!"
You can’t perform that action at this time.
0 commit comments