File size: 427 Bytes
b34f095
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

# Set the directory to this script's current directory
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR

source ./settings.sh

docker rmi ${IMAGE_NAME}
docker build \
	--force-rm \
	--rm \
	--build-arg NGINX_WORKER_CONNECTIONS=${NGINX_WORKER_CONNECTIONS} \
	--build-arg NGINX_MULTI_ACCEPT=${NGINX_MULTI_ACCEPT} \
	--build-arg NGINX_WORKER_PRIORITY=${NGINX_WORKER_PRIORITY} \
	--tag ${IMAGE_NAME} .