Watchtower/Dockerfile

12 lines
319 B
Docker
Raw Permalink Normal View History

2020-03-16 16:16:07 +01:00
FROM gradle:jdk11 as builder
COPY --chown=gradle:gradle . /home/gradle/src
WORKDIR /home/gradle/src
RUN gradle build
FROM openjdk:11-jre-slim
COPY --from=builder /home/gradle/src/build/distributions/watchtower.tar /app/watchtower.tar
WORKDIR /app
RUN tar -xvf watchtower.tar
WORKDIR /app/watchtower
CMD bin/watchtower