mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-15 10:45:36 +01:00
11 lines
367 B
Docker
11 lines
367 B
Docker
|
FROM --platform=$BUILDPLATFORM gradle:jdk17 as builder
|
||
|
WORKDIR /build
|
||
|
COPY build.gradle settings.gradle gradle.properties ./
|
||
|
COPY .git .git
|
||
|
COPY src src
|
||
|
RUN gradle --no-daemon build
|
||
|
|
||
|
FROM --platform=$TARGETPLATFORM eclipse-temurin:21-jre-alpine
|
||
|
WORKDIR /app
|
||
|
COPY --from=builder /build/build/libs/ViaProxy-*.jar ViaProxy.jar
|
||
|
ENTRYPOINT ["java", "-jar", "ViaProxy.jar"]
|