Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

smaller docker image #7

Open
skippy opened this issue Nov 5, 2015 · 1 comment
Open

smaller docker image #7

skippy opened this issue Nov 5, 2015 · 1 comment

Comments

@skippy
Copy link

skippy commented Nov 5, 2015

this cuts the size down to around 400megs; still not tiny but helpful. You can do a similar trick in ubuntu, and the resulting image is fairly close to the debian version

FROM debian:8

ENV BUILD_PACKAGES build-essential
ENV MAIN_PACKAGES wkhtmltopdf python-pip xvfb xauth xfonts-base

RUN apt-get update -qq \
  && apt-get install --no-install-recommends -yq $BUILD_PACKAGES $MAIN_PACKAGES \
  && apt-get remove -y $BUILD_PACKAGES \
  && apt-get autoremove -y \
  && apt-get clean \
  && rm -rf /var/lib/apt/lists/* \
  && truncate -s 0 /var/log/*log

ENTRYPOINT ["wkhtmltopdf"]

# Show the extended help
CMD ["-h"]
@prakashpp
Copy link

@skippy I will be happy to receive a PR on the same 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants