mirror of
https://github.com/there4/markdown-resume.git
synced 2024-12-03 08:59:35 -05:00
Merge pull request #80 from mmarchini/fix-wkhtmltopdf-docker-issue
docker: fix "md2resume pdf" command on docker containers
This commit is contained in:
commit
c6e66fd476
@ -20,8 +20,8 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Wrap pdf creation in a xvfb-run to enable headless pdf creation in the container
|
# Wrap pdf creation in a xvfb-run to enable headless pdf creation in the container
|
||||||
RUN printf '#!/bin/bash\nxvfb-run md2resume pdf "$@"' >> /usr/bin/md2pdf \
|
RUN echo "#!/bin/bash\nxvfb-run $(which wkhtmltopdf) \"\$@\"" >> /usr/local/bin/wkhtmltopdf \
|
||||||
&& chmod +x /usr/bin/md2pdf
|
&& chmod +x /usr/local/bin/wkhtmltopdf
|
||||||
|
|
||||||
# Enables continously calling a command and piping the output to STDOUT, viewable via docker logs
|
# Enables continously calling a command and piping the output to STDOUT, viewable via docker logs
|
||||||
RUN printf '#!/bin/bash\nwhile sleep 1; do\n "$@"\ndone' >> /usr/bin/watch-docker \
|
RUN printf '#!/bin/bash\nwhile sleep 1; do\n "$@"\ndone' >> /usr/bin/watch-docker \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user