Skip to content

Commit 07d8b3c

Browse files
committed
fix(scripts): add missing build-docker-express.sh script
Ticket: BTC-2566 - Re-added back docker file script that was missing for some reason
1 parent 884eba9 commit 07d8b3c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

scripts/build-docker-express.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
set -e
4+
5+
# Get dynamic build arguments
6+
BUILD_DATE=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
7+
VERSION=$(jq -r .version < modules/express/package.json)
8+
GIT_HASH=$(git rev-parse HEAD)
9+
10+
echo "Building Docker image with:"
11+
echo " BUILD_DATE: $BUILD_DATE"
12+
echo " VERSION: $VERSION"
13+
echo " GIT_HASH: $GIT_HASH"
14+
15+
# Build the Docker image
16+
docker build \
17+
--platform=linux/amd64 \
18+
--build-arg BUILD_DATE="$BUILD_DATE" \
19+
--build-arg VERSION="$VERSION" \
20+
--build-arg GIT_HASH="$GIT_HASH" \
21+
-t bitgo/express:latest \
22+
-t bitgo/express:"$VERSION" \
23+
.
24+
25+
echo "Docker build completed successfully!"

0 commit comments

Comments
 (0)