wordpress/bin/dev-shell
2024-05-20 22:55:44 +02:00

23 lines
416 B
Bash
Executable File

#!/usr/bin/env bash
# This is development util
main() {
local wpVersion="${1:-6.5.3}"
set -ex
docker build \
--file=Dockerfile.dev \
--build-arg="WP_VERSION=${wpVersion}" \
-t "localhost/nlss-wp-dev:${wpVersion}" .
docker run \
--init \
--rm \
-it \
-v "${PWD}/src/:/workspace" \
"localhost/nlss-wp-dev:${wpVersion}"
}
main "${@}"