2023-03-07 18:05:33 -05:00
|
|
|
FROM gradle:8.0.2-jdk8 AS builder
|
2020-02-12 13:24:02 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2023-02-07 18:24:10 -05:00
|
|
|
RUN apk add --update bash ca-certificates openjdk8-jre-base nss git && \
|
2020-02-12 13:24:02 -05:00
|
|
|
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"]
|