Making the build work

This commit is contained in:
retropikzel 2024-09-26 19:29:27 +03:00
parent a116d415c8
commit e7bd82e172
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,6 @@
FROM debian:bookworm-slim
RUN apt update && apt install -y docker.io make bash
RUN apt update && apt install -y docker.io make bash curl
RUN curl -s "https://get.sdkman.io" | bash
RUN bash -c 'source "$HOME/.sdkman/bin/sdkman-init.sh" && sdk install java 22.0.2-tem'
COPY jenkins_entrypoint.sh /entrypoint.sh
ENTRYPOINT ["bash", "/entrypoint.sh"]

4
jenkins_entrypoint.sh Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk use 22.0.2-tem