mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 17:42:29 +01:00
25 lines
422 B
Plaintext
25 lines
422 B
Plaintext
|
#!/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 "${@}"
|