Skip to content
This repository was archived by the owner on Jun 1, 2026. It is now read-only.
This repository was archived by the owner on Jun 1, 2026. It is now read-only.

smaller docker image #7

Description

@skippy

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"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions