move non-essential options to CMD, add LABELS

This commit is contained in:
Jakub Sokołowski 2018-07-20 15:49:35 +02:00
parent 010ea3b013
commit 31c85bfd94
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 5 additions and 5 deletions

View File

@ -9,17 +9,14 @@ RUN wget https://github.com/web3j/web3j/releases/download/v2.3.0/web3j-2.3.0.tar
RUN tar -xf web3j-2.3.0.tar
RUN cp -r web3j-2.3.0/* /usr/local/
COPY . /usr/src/app
WORKDIR /usr/src/app
ENV LEIN_SNAPSHOTS_IN_RELEASE=1
RUN lein less once
RUN lein uberjar
FROM clojure
WORKDIR /root/
@ -31,6 +28,9 @@ RUN apt-get -y install less
COPY --from=builder /usr/src/app/target/uberjar/commiteth.jar .
COPY html2png.sh .
CMD [""]
ENTRYPOINT ["/usr/bin/java", "-Duser.timezone=UTC", "-Dconf=config-test.edn", "-jar", "/root/commiteth.jar"]
LABEL source="https://github.com/status-im/open-bounty"
LABEL description="Allows you to set bounties for GitHub issues, paid out in Ether or any ERC-20 token."
LABEL maintainer="rob@status.im"
CMD ["-Duser.timezone=UTC", "-Dconf=config-test.edn"]
ENTRYPOINT ["/usr/bin/java", "-jar", "/root/commiteth.jar"]