flayre/Dockerfile
William Brawner a31eec5e0a Fix Dockerfile
Signed-off-by: William Brawner <me@wbrawner.com>
2020-09-05 12:16:55 -07:00

12 lines
421 B
Docker

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
CMD /usr/java/openjdk-14/bin/java $JVM_ARGS -jar /flayre-server.jar