ottobotv2/Dockerfile

19 lines
288 B
Docker

FROM gradle:jdk8 as build
COPY . /app
WORKDIR /app
ENV GRADLE_OPTS -Dorg.gradle.daemon=false
RUN gradle bootJar
FROM openjdk:8-jre-stretch
COPY --from=build /app/build/libs/ottobot.jar /otto.jar
RUN chmod 444 /otto.jar
RUN useradd -r -u 1001 otto
USER otto
CMD java -jar /otto.jar