2020-02-12 13:24:02 -05:00
|
|
|
FROM gradle:jdk8 AS builder
|
|
|
|
|
|
|
|
WORKDIR /home/gradle/project
|
|
|
|
|
|
|
|
ADD . ./
|
|
|
|
|
2020-02-26 21:38:50 -05:00
|
|
|
RUN gradle jar
|
2020-02-12 13:24:02 -05:00
|
|
|
|
|
|
|
RUN ls
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
|
|
|
|
RUN apk add --update bash ca-certificates openjdk8-jre-base nss && \
|
|
|
|
rm -rf /var/cache/apk/*
|
|
|
|
|
2020-02-26 21:38:50 -05:00
|
|
|
COPY --from=builder /home/gradle/project/build/libs/web-api-commander.jar ./
|
2020-02-12 13:24:02 -05:00
|
|
|
|
|
|
|
ENTRYPOINT ["java","-jar","/web-api-commander.jar"]
|
|
|
|
CMD ["--help"]
|
|
|
|
|
|
|
|
|
|
|
|
|