open-bounty/Dockerfile

37 lines
978 B
Docker
Raw Normal View History

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/
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
COPY --from=builder /usr/src/app/target/uberjar/commiteth.jar .
COPY html2png.sh .
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"]