mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
10 lines
334 B
Bash
Executable File
10 lines
334 B
Bash
Executable File
#!/bin/sh
|
|
# Build the chatmail Docker image with the current git hash baked in.
|
|
# Usage: ./docker/build.sh [extra docker-compose build args...]
|
|
#
|
|
# .git/ is excluded from the build context (.dockerignore) so the hash
|
|
# must be passed as a build arg from the host.
|
|
|
|
export GIT_HASH=$(git rev-parse HEAD)
|
|
exec docker compose build "$@"
|