FROM debian:latest LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com" COPY ./agent.secret /agent.secret ENV DOCKER 1 USER 0 WORKDIR / RUN apt update; apt-get upgrade -y RUN apt install -y build-essential cmake ninja-build openjdk-17-jdk nasm git curl wget openjdk-17-jre android-sdk android-sdk-build-tools android-sdk-platform-tools clang pkg-config unzip libgtk-3-dev RUN curl -sO https://ci.zontreck.com/jnlpJars/agent.jar RUN curl -sO https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.22.2-stable.tar.xz RUN tar -xf /flutter_linux_3.22.2-stable.tar.xz RUN curl -sO https://dl.google.com/android/repository/commandlinetools-linux-11076708_latest.zip WORKDIR /adk RUN unzip /commandlinetools-linux-11076708_latest.zip RUN echo "export PATH=$PATH:/flutter/bin:/adk/cmdline-tools/bin" > /flutter/env WORKDIR / RUN export PATH=$PATH:/flutter/bin:/adk/cmdline-tools/bin RUN apt install -y fonts-liberation libgtk-4-1 libgbm1 libu2f-udev libvulkan1 xdg-utils RUN rm *.xz RUN curl -sO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN dpkg -i google-chrome-stable_current_amd64.deb RUN chown -R root:root /flutter RUN /flutter/bin/flutter --disable-analytics # RUN sdkmanager --install "cmdline-tools;latest" RUN /flutter/bin/flutter doctor ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", "@/agent.secret", "-name", "Linux", "-workDir", "/builder" ]