mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
13 lines
381 B
Bash
Executable File
13 lines
381 B
Bash
Executable File
VERSION=$(grep -oE "\"version\": \"(\w*.\w*.\w*.\w*.\w*.)" package.json | cut -d\" -f4)
|
|
|
|
CONTAINER_ENGINE=$1
|
|
if [ -z $CONTAINER_ENGINE ]; then
|
|
CONTAINER_ENGINE=docker
|
|
fi
|
|
|
|
echo using $CONTAINER_ENGINE container engine...
|
|
|
|
$CONTAINER_ENGINE build --rm --no-cache \
|
|
--build-arg BUILD_DATE="$(date +"%Y-%m-%dT%H:%M:%SZ")" \
|
|
--file Containerfile \
|
|
--tag sparkle-guide:$VERSION . |