9 lines
284 B
Text
9 lines
284 B
Text
|
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"]
|