mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-23 16:01:15 +00:00
Install wkhtmltoimage for PNG generation
This commit is contained in:
parent
7b600f6f12
commit
6bc607916c
@ -23,7 +23,12 @@ RUN lein uberjar
|
|||||||
FROM clojure
|
FROM clojure
|
||||||
WORKDIR /root/
|
WORKDIR /root/
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get -y install xvfb
|
||||||
|
RUN apt-get -y install wkhtmltopdf
|
||||||
|
|
||||||
COPY --from=builder /usr/src/app/target/uberjar/commiteth.jar .
|
COPY --from=builder /usr/src/app/target/uberjar/commiteth.jar .
|
||||||
|
COPY html2png.sh .
|
||||||
|
|
||||||
CMD [""]
|
CMD [""]
|
||||||
ENTRYPOINT ["/usr/bin/java", "-Duser.timezone=UTC", "-Dconf=config-test.edn", "-jar", "/root/commiteth.jar"]
|
ENTRYPOINT ["/usr/bin/java", "-Duser.timezone=UTC", "-Dconf=config-test.edn", "-jar", "/root/commiteth.jar"]
|
||||||
|
3
html2png.sh
Executable file
3
html2png.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#!/bin/bash -eu
|
||||||
|
# need to run wkhtmltoimage in quiet mode because it misuses stdout
|
||||||
|
xvfb-run -a -s "-screen 0 640x480x16" wkhtmltoimage -q "$@" 2>/dev/null
|
Loading…
x
Reference in New Issue
Block a user