2020-09-05 19:02:34 +00:00
|
|
|
FROM openjdk:14-jdk as builder
|
|
|
|
MAINTAINER William Brawner <me@wbrawner.com>
|
|
|
|
|
|
|
|
RUN mkdir -p /home/gradle
|
|
|
|
COPY . /home/gradle/src
|
|
|
|
WORKDIR /home/gradle/src
|
|
|
|
RUN /home/gradle/src/gradlew --console=plain --no-daemon server:bootJar
|
|
|
|
|
|
|
|
FROM openjdk:14-jdk-slim
|
|
|
|
EXPOSE 8080
|
|
|
|
COPY --from=builder /home/gradle/src/server/build/libs/flayre-server.jar flayre-server.jar
|
2020-09-05 19:16:55 +00:00
|
|
|
CMD /usr/java/openjdk-14/bin/java $JVM_ARGS -jar /flayre-server.jar
|