refactored the wsscrcpy dockerfile
This commit is contained in:
6
apps/ws-scrcpy/config.yaml
Normal file
6
apps/ws-scrcpy/config.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
runGoogTracker: true
|
||||
runApplTracker: false
|
||||
|
||||
server:
|
||||
- secure: false
|
||||
port: 8000
|
||||
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