From 90f7220abfa5f6e90bedcd8c0ef60f46ee875b75 Mon Sep 17 00:00:00 2001 From: waahhhh <40632052+waahhhh@users.noreply.github.com> Date: Sat, 30 Jul 2022 19:42:07 +0200 Subject: [PATCH] updated scrcpy + dependencies; updated drivers for amd --- Dockerfile | 45 ++++++++++++++++++++++++--------------------- 1 file changed, 24 insertions(+), 21 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ec22e8..b7e6dd6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,29 @@ ### builder FROM alpine:edge AS builder -ARG SCRCPY_VER=1.16 -ARG SERVER_HASH="94a79e05b4498d0460ab7bd9d12cbf05156e3a47bf0c5d1420cee1d4493b3832" +ARG SCRCPY_VER=1.24 +ARG SERVER_HASH="ae74a81ea79c0dc7250e586627c278c0a9a8c5de46c9fb5c38c167fb1a36f056" RUN apk add --no-cache \ - curl \ - ffmpeg-dev \ - gcc \ - git \ - make \ - meson \ - musl-dev \ - openjdk8 \ - pkgconf \ - sdl2-dev - -RUN PATH=$PATH:/usr/lib/jvm/java-1.8-openjdk/bin + curl \ + ffmpeg-dev \ + gcc \ + git \ + libusb-dev \ + make \ + meson \ + musl-dev \ + openjdk11 \ + pkgconf \ + sdl2-dev + +RUN PATH=$PATH:/usr/lib/jvm/java-11-openjdk/bin RUN curl -L -o scrcpy-server https://github.com/Genymobile/scrcpy/releases/download/v${SCRCPY_VER}/scrcpy-server-v${SCRCPY_VER} RUN echo "$SERVER_HASH /scrcpy-server" | sha256sum -c - RUN git clone https://github.com/Genymobile/scrcpy.git -RUN cd scrcpy && meson x --buildtype release --strip -Db_lto=true -Dprebuilt_server=/scrcpy-server +RUN cd scrcpy && meson x --buildtype=release --strip -Db_lto=true -Dprebuilt_server=/scrcpy-server RUN cd scrcpy/x && ninja +RUN cd scrcpy/x && ninja install ### runner FROM alpine:edge AS runner @@ -32,17 +34,18 @@ RUN echo http://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositor LABEL maintainer="Pierre Gordon " RUN apk add --no-cache \ - android-tools \ - ffmpeg \ - virtualgl + android-tools \ + ffmpeg \ + virtualgl -COPY --from=builder /scrcpy-server /usr/local/share/scrcpy/ -COPY --from=builder /scrcpy/x/app/scrcpy /usr/local/bin/ +COPY --from=builder /usr/local/share/scrcpy/scrcpy-server /usr/local/share/scrcpy/ +COPY --from=builder /usr/local/bin/scrcpy /usr/local/bin/ +COPY --from=builder /usr/local/share/icons/hicolor/256x256/apps/scrcpy.png /usr/local/share/icons/hicolor/256x256/apps/ ### runner (amd) FROM runner AS amd -RUN apk add --no-cache mesa-dri-swrast +RUN apk add --no-cache mesa-dri-gallium ### runner (intel) FROM runner AS intel