mirror of
https://github.com/processone/docker-ejabberd
synced 2024-11-10 13:10:37 +00:00
4a27d2d9bd
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
15 lines
432 B
Bash
15 lines
432 B
Bash
#!/bin/bash
|
|
|
|
# See documentation for details:
|
|
# https://docs.docker.com/docker-hub/builds/advanced/
|
|
|
|
# Use $VERSION build environment variable or the Docker repository tag being built
|
|
version=${VERSION:-${DOCKER_TAG}}
|
|
|
|
docker build \
|
|
--build-arg VERSION=$version \
|
|
--build-arg VCS_REF=`git rev-parse --short HEAD` \
|
|
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
|
|
-f $DOCKERFILE_PATH \
|
|
-t $IMAGE_NAME .
|