refactored the wsscrcpy dockerfile
This commit is contained in:
13
apps/ws-scrcpy/entrypoint.sh
Normal file
13
apps/ws-scrcpy/entrypoint.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
adb start-server
|
||||
|
||||
if [ -n "$ADB_DEVICE_HOST" ]; then
|
||||
echo "Connecting to ADB device at $ADB_DEVICE_HOST:${ADB_DEVICE_PORT:-5555}"
|
||||
adb connect "$ADB_DEVICE_HOST:${ADB_DEVICE_PORT:-5555}"
|
||||
sleep 2
|
||||
adb devices
|
||||
fi
|
||||
|
||||
exec node index.js
|
||||
Reference in New Issue
Block a user