12 lines
319 B
Docker
12 lines
319 B
Docker
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 |