ottobot-v3/Dockerfile

12 lines
318 B
Docker
Raw Permalink Normal View History

2020-09-03 15:41:55 +02:00
FROM gradle:6.6-jdk14 AS builder
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle distTar
FROM adoptopenjdk:14-jre-hotspot
COPY --from=builder /home/gradle/src/build/distributions/ottobot.tar /app/ottobot.tar
WORKDIR /app
RUN tar -xvf ottobot.tar
WORKDIR /app/ottobot
CMD bin/ottobot