added node-gyp install
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
FROM node:25-bookworm
|
FROM node:22-bookworm
|
||||||
|
|
||||||
# System deps: ADB for device communication, build tools for native modules (node-pty)
|
# System deps: ADB for device communication, build tools for native modules (node-pty)
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y android-tools-adb python3 make g++ git && \
|
apt-get install -y android-tools-adb python3 make g++ git && \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
RUN npm install -g node-gyp
|
||||||
|
|
||||||
# Clone and build ws-scrcpy
|
# Clone and build ws-scrcpy
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN git clone --depth 1 https://github.com/NetrisTV/ws-scrcpy.git . && \
|
RUN git clone --depth 1 https://github.com/NetrisTV/ws-scrcpy.git . && \
|
||||||
|
|||||||
Reference in New Issue
Block a user