pixelchat/Dockerfile
2024-12-16 16:17:23 +01:00

8 lines
284 B
Docker

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"]