mirror of
https://github.com/jkaninda/nginx-php-fpm.git
synced 2025-12-06 13:39:42 +01:00
17 lines
313 B
Bash
Executable File
17 lines
313 B
Bash
Executable File
#!/bin/bash
|
|
if [ $# -eq 0 ]
|
|
then
|
|
tag='latest'
|
|
else
|
|
tag=$1
|
|
fi
|
|
if [ $tag != 'latest' ]
|
|
then
|
|
echo 'Build from tag'
|
|
docker build -f src/docker/${tag}/Dockerfile -t jkaninda/nginx-php-fpm:$tag .
|
|
else
|
|
echo 'Build latest'
|
|
docker build -f src/docker/8.2/Dockerfile -t jkaninda/nginx-php-fpm:$tag .
|
|
|
|
fi
|