Skip to content

Commit

Permalink
build-swoole-cli-alpine-container.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed Jan 26, 2025
1 parent b0f26bf commit 232cae1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sapi/scripts/build-swoole-cli-alpine-container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,16 @@ MIRROR=''
docker buildx build -t ${IMAGE} -f ./Dockerfile . --platform ${PLATFORM} --build-arg="MIRROR=${MIRROR}"

echo ${IMAGE}

# docker save -o "swoole-cli-image.tar" ${IMAGE}
{
docker push ${IMAGE}
} || {
echo $?
}

docker run --rm --name demo ${IMAGE} swoole-cli -v
docker run --rm --name demo ${IMAGE} swoole-cli -m
docker run --rm --name demo ${IMAGE} swoole-cli -c /usr/local/swoole-cli/etc/php.ini --ri curl
docker run --rm --name demo ${IMAGE} swoole-cli -c /usr/local/swoole-cli/etc/php.ini --ri openssl
docker run --rm --name demo ${IMAGE} swoole-cli --ri swoole

0 comments on commit 232cae1

Please sign in to comment.