diff --git a/LinuxGeneralCompiler/Dockerfile b/LinuxGeneralCompiler/Dockerfile index 8c515c0..d4732b8 100644 --- a/LinuxGeneralCompiler/Dockerfile +++ b/LinuxGeneralCompiler/Dockerfile @@ -1,13 +1,29 @@ FROM debian:latest +LABEL author="Tara Piccari" maintainer="tarapiccari@gmail.com" + ARG JENKINS_SECRET=notset ENV DOCKER 1 + +RUN echo ${JENKINS_SECRET} > /agent.secret + 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 +RUN apt install -y build-essential cmake ninja-build openjdk-17-jdk nasm git curl wget openjdk-17-jre google-chrome android-sdk android-sdk-build-tools android-sdk-platform-tools WORKDIR / RUN curl -sO https://ci.zontreck.com/jnlpJars/agent.jar -ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", JENKINS_SECRET, "-name", "Linux", "-workDir", "/builder" ] \ No newline at end of file +RUN curl -sO https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.22.2-stable.tar.xz + +WORKDIR /flutter +RUN tar -xf flutter_linux_3.22.2-stable.tar.xz -C /flutter + +RUN echo "export PATH=$PATH:/flutter/bin" + +WORKDIR / + +RUN rm *.xz + +ENTRYPOINT [ "java", "-jar", "/agent.jar", "-url", "https://ci.zontreck.com", "-secret", "@/agent.secret", "-name", "Linux", "-workDir", "/builder" ] \ No newline at end of file