mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
13 lines
493 B
Bash
Executable file
13 lines
493 B
Bash
Executable file
#!/bin/bash
|
|
docker build --build-arg BRANCH=dev -t dispatcharr/dispatcharr:dev -f Dockerfile ..
|
|
|
|
# Get version information
|
|
VERSION=$(python -c "import sys; sys.path.append('..'); import version; print(version.__version__)")
|
|
BUILD=$(python -c "import sys; sys.path.append('..'); import version; print(version.__build__)")
|
|
|
|
# Build with version tags
|
|
docker build --build-arg BRANCH=dev \
|
|
-t dispatcharr/dispatcharr:dev \
|
|
-t dispatcharr/dispatcharr:${VERSION}-${BUILD} \
|
|
-f Dockerfile ..
|
|
.
|