mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2024-05-31 20:17:18 -04:00
compile jar only container
This commit is contained in:
parent
b483d96141
commit
c1ffa8a745
12
jar.Dockerfile
Normal file
12
jar.Dockerfile
Normal 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 /
|
Loading…
Reference in a new issue