Dockerfile 499 B

123456789101112131415161718192021222324
  1. FROM java:8-jdk-alpine
  2. RUN apk add --no-cache --update python3 git
  3. ADD . /root/
  4. WORKDIR /root
  5. RUN git clone https://github.com/jenkinsci/jenkins.git
  6. RUN apk add --no-cache --update openjdk8 curl
  7. RUN mkdir /usr/lib/gradle
  8. WORKDIR /usr/lib/gradle
  9. RUN set -x \
  10. && curl -L -O https://services.gradle.org/distributions/gradle-4.10.3-bin.zip \
  11. && unzip gradle-4.10.3-bin.zip
  12. ENV PATH ${PATH}:/usr/lib/gradle/gradle-4.10.3/bin
  13. WORKDIR /root/szz
  14. RUN gradle build && gradle fatJar
  15. WORKDIR /root