AnPDockerServer/Nginx/rebuild.sh

4 lines
247 B
Bash
Executable File

#!/bin/bash
directory=`dirname $(readlink -f "$0")`
[ "$(docker images -q kyman:nginx-server 2>/dev/null)" ] && docker image remove kyman:nginx-server --force
docker build -f $directory/Dockerfile.debian -t kyman:nginx-server $directory --no-cache