We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 884eba9 commit 07d8b3cCopy full SHA for 07d8b3c
scripts/build-docker-express.sh
@@ -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