FROM eclipse-temurin:21-jdk-alpine AS builder WORKDIR /src COPY . ./ RUN chmod +x ./gradlew && ./gradlew :server:shadowJar FROM eclipse-temurin:21-jdk-alpine AS runner COPY --from=builder /src/server/build/libs/*-all.jar /bin/pixelchat.jar CMD ["java", "-jar", "/bin/pixelchat.jar"]