23 lines
359 B
Docker
23 lines
359 B
Docker
FROM gradle:jdk8 AS builder
|
|
|
|
WORKDIR /home/gradle/project
|
|
|
|
ADD . ./
|
|
|
|
RUN gradle jar
|
|
|
|
RUN ls
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN apk add --update bash ca-certificates openjdk8-jre-base nss && \
|
|
rm -rf /var/cache/apk/*
|
|
|
|
COPY --from=builder /home/gradle/project/build/libs/web-api-commander.jar ./
|
|
|
|
ENTRYPOINT ["java","-jar","/web-api-commander.jar"]
|
|
CMD ["--help"]
|
|
|
|
|
|
|