compile jar only container

This commit is contained in:
array-in-a-matrix 2024-05-02 14:52:03 -04:00
parent b483d96141
commit c1ffa8a745

12
jar.Dockerfile Normal file
View file

@ -0,0 +1,12 @@
#? Builder
FROM --platform=$BUILDPLATFORM debian:bookworm-slim AS builder
RUN apt update -y && apt upgrade -y && apt autoremove -y
RUN apt install -y git gradle
WORKDIR /src
COPY . /src
RUN git submodule init && git submodule update
RUN chmod +x gradlew && ./gradlew dist
ENTRYPOINT [ "/src/build/dist" ]
FROM scratch AS export
COPY --from=builder /src/build/dist /