improve build.sh

This commit is contained in:
lyon 2022-06-21 14:58:49 +08:00
parent f86ddc3d12
commit 8b71911be4

View File

@ -1,5 +1,14 @@
#!/bin/bash
DOCKER_NAME=pikadev
docker rmi $DOCKER_NAME
docker build -t $DOCKER_NAME .
if [ $# == 0 ]
then
docker build -t $DOCKER_NAME .
fi
if [ $# == 1 ]
then
docker build $1 -t $DOCKER_NAME .
fi