Skip to content

Commit 957f4cd

Browse files
committed
fix(scripts): add missing build-docker-express.sh script
Ticket: BTC-2566 - Create executable build-docker-express.sh script with proper content
1 parent 884eba9 commit 957f4cd

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

scripts/build-docker-express.sh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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!"

0 commit comments

Comments
 (0)