ottobotv2/Dockerfile

19 lines
288 B
Docker
Raw Normal View History

2019-06-10 11:22:36 +02:00
FROM gradle:jdk8 as build
COPY . /app
WORKDIR /app
2019-06-10 11:28:05 +02:00
ENV GRADLE_OPTS -Dorg.gradle.daemon=false
2019-06-10 11:22:36 +02:00
RUN gradle bootJar
2019-06-09 19:46:53 +02:00
FROM openjdk:8-jre-stretch
2019-05-22 15:59:50 +02:00
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