ottobotv2/Dockerfile

13 lines
213 B
Docker

FROM openjdk:8-stretch as build
COPY . /app
WORKDIR /app
RUN ./gradlew bootJar
FROM openjdk:8-jre-alpine
COPY --from=build /app/build/libs/OttoBot*.jar /otto.jar
RUN chmod +x /otto.jar
CMD java -jar /otto.jar