This repository has been archived on 2023-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
nginx-ldap-auth/build
Tiago Augusto Pimenta 893d85d3c6 Fix image
2018-10-02 22:04:00 -03:00

20 lines
270 B
Bash
Executable file

#!/bin/sh
set -e
image='docker.io/tpimenta/nginx-ldap-auth:latest'
atexit() {
docker images -q -f dangling=true | xargs -r docker rmi
}
trap atexit INT TERM EXIT
docker build \
--force-rm \
--no-cache \
--tag "$image" \
"$(dirname "$0")"
docker push "$image"