This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$num = (0.1 + 0.7) * 10; | |
$num = bcmul(bcadd(0.1, 0.7, 1), 10, 1); | |
php -r 'echo bcmul(bcadd(0.1, 0.7), 10)."\n";' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
まずはここのDockerfileを参考にするだけだとxvfbが足りなくて動かないので16行目に追加し、 | |
https://github.com/LoicMahieu/alpine-wkhtmltopdf/blob/master/Dockerfile | |
以下のものも参考にdbusはdbusパッケージにあるdbus-genuuidを実行しておかないと、xvfb実行時にエラーになるので35行目に追加。 | |
http://kernhack.hatenablog.com/entry/2016/05/28/101626 | |
日本語ならIPAFontも入れると良いが、ググればすぐにでてくるので割愛。 | |
これだけだと、CSSが効かない状態でPDF出力されるので別途対応が必要。ヘッドレスブラウザが必要? | |
FROM alpine:3.3 | |
RUN apk add --no-cache \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x06A471600874348f501ecAbc858c11Ab5be6f3d3 |