2018-02-06 10:18:31 +00:00
|
|
|
FROM clojure as builder
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
|
|
|
|
|
|
|
RUN wget -O /usr/local/bin/solc https://github.com/ethereum/solidity/releases/download/v0.4.15/solc-static-linux
|
|
|
|
RUN chmod +x /usr/local/bin/solc
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
2018-03-06 15:37:34 +00:00
|
|
|
RUN apt-get update
|
|
|
|
RUN apt-get -y install xvfb
|
|
|
|
RUN apt-get -y install wkhtmltopdf
|
2018-04-06 15:37:12 +00:00
|
|
|
RUN apt-get -y install less
|
2018-03-06 15:37:34 +00:00
|
|
|
|
2018-02-06 10:18:31 +00:00
|
|
|
COPY --from=builder /usr/src/app/target/uberjar/commiteth.jar .
|
2018-03-06 15:37:34 +00:00
|
|
|
COPY html2png.sh .
|
2018-02-06 10:18:31 +00:00
|
|
|
|
2018-07-20 13:49:35 +00:00
|
|
|
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"
|
2018-02-06 10:18:31 +00:00
|
|
|
|
2018-07-20 13:49:35 +00:00
|
|
|
CMD ["-Duser.timezone=UTC", "-Dconf=config-test.edn"]
|
|
|
|
ENTRYPOINT ["/usr/bin/java", "-jar", "/root/commiteth.jar"]
|