Skip to content

Instantly share code, notes, and snippets.

@hedefalk
Created September 25, 2020 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hedefalk/05796ad1d5541bb2a2198b3244071ce6 to your computer and use it in GitHub Desktop.
Save hedefalk/05796ad1d5541bb2a2198b3244071ce6 to your computer and use it in GitHub Desktop.
docker history --no-trunc jitesoft/tesseract-ocr > tesseract-layers
IMAGE CREATED CREATED BY SIZE COMMENT
sha256:02fcf70835695770fb36e4dc9b44486045f4dd74ace78bf4f0a678fce569fc54 27 hours ago CMD ["--version"] 0B buildkit.dockerfile.v0
<missing> 27 hours ago ENTRYPOINT ["entrypoint"] 0B buildkit.dockerfile.v0
<missing> 27 hours ago USER tesseract 0B buildkit.dockerfile.v0
<missing> 27 hours ago RUN |5 TESSERACT_VERSION=4.1.1 LEPTONICA_VERSION=1.80.0 TESSERACT_VERSION=4.1.1 LEPTONICA_VERSION=1.80.0 TARGETARCH=amd64 /bin/sh -c tar -xzhf /tmp/tess/tess-${TARGETARCH}.tar.gz -C /usr/local && groupadd -g 472 -r tesseract && useradd -u 472 -r -g tesseract tesseract && apt-get update && apt-get -y install libgomp1 libgif7 libwebpmux3 libwebp6 libopenjp2-7 libpng16-16 libjpeg9 libtiff5 zlib1g wget && chmod -R +x /usr/local/bin && chown -R tesseract:tesseract /usr/local/share && rm -f /usr/local/lib/*.a && apt-get autoremove -y && apt-get clean -y # buildkit 113MB buildkit.dockerfile.v0
<missing> 27 hours ago ENV TESSDATA_PREFIX=/usr/local/share/tessdata 0B buildkit.dockerfile.v0
<missing> 27 hours ago ARG TARGETARCH 0B buildkit.dockerfile.v0
<missing> 27 hours ago ARG LEPTONICA_VERSION 0B buildkit.dockerfile.v0
<missing> 27 hours ago ARG TESSERACT_VERSION 0B buildkit.dockerfile.v0
<missing> 27 hours ago LABEL maintainer=Johannes Tegnér <johannes@jitesoft.com> maintainer.org=Jitesoft maintainer.org.uri=https://jitesoft.com com.jitesoft.project.repo.type=git com.jitesoft.project.repo.uri=https://gitlab.com/jitesoft/dockerfiles/tesseract com.jitesoft.project.repo.issues=https://gitlab.com/jitesoft/dockerfiles/tesseract/issues com.jitesoft.project.registry.uri=registry.gitlab.com/jitesoft/dockerfiles/tesseract com.jitesoft.app.tesseract.version=4.1.1 com.jitesoft.app.leptonica.version=1.80.0 0B buildkit.dockerfile.v0
<missing> 27 hours ago ARG LEPTONICA_VERSION 0B buildkit.dockerfile.v0
<missing> 27 hours ago ARG TESSERACT_VERSION 0B buildkit.dockerfile.v0
<missing> 5 days ago CMD ["/bin/bash"] 0B buildkit.dockerfile.v0
<missing> 5 days ago RUN |4 VERSION=20.04 NAME=focal TARGETPLATFORM=linux/amd64 TARGETARCH=amd64 /bin/sh -c set -xe && echo '#!/bin/sh' > /usr/sbin/policy-rc.d && echo 'exit 101' >> /usr/sbin/policy-rc.d && chmod +x /usr/sbin/policy-rc.d && dpkg-divert --local --rename --add /sbin/initctl && cp -a /usr/sbin/policy-rc.d /sbin/initctl && sed -i 's/^exit.*/exit 0/' /sbin/initctl && echo 'force-unsafe-io' > /etc/dpkg/dpkg.cfg.d/docker-apt-speedup && echo 'DPkg::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' > /etc/apt/apt.conf.d/docker-clean && echo 'APT::Update::Post-Invoke { "rm -f /var/cache/apt/archives/*.deb /var/cache/apt/archives/partial/*.deb /var/cache/apt/*.bin || true"; };' >> /etc/apt/apt.conf.d/docker-clean && echo 'Dir::Cache::pkgcache ""; Dir::Cache::srcpkgcache "";' >> /etc/apt/apt.conf.d/docker-clean && echo 'Acquire::Languages "none";' > /etc/apt/apt.conf.d/docker-no-languages && echo 'Acquire::GzipIndexes "true"; Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt.conf.d/docker-gzip-indexes && echo 'Apt::AutoRemove::SuggestsImportant "false";' > /etc/apt/apt.conf.d/docker-autoremove-suggests && mkdir -p /run/systemd && echo 'docker' > /run/systemd/container # buildkit 818B buildkit.dockerfile.v0
<missing> 5 days ago ADD artifacts/linux/amd64/ubuntu-root.tar.gz / # buildkit 72.9MB buildkit.dockerfile.v0
<missing> 5 days ago LABEL maintainer=Johannes Tegnér <johannes@jitesoft.com> maintainer.org=Jitesoft maintainer.org.uri=https://jitesoft.com com.jitesoft.project.repo.type=git com.jitesoft.project.repo.uri=https://gitlab.com/jitesoft/dockerfiles/ubuntu com.jitesoft.project.repo.issues=https://gitlab.com/jitesoft/dockerfiles/ubuntu/issues com.jitesoft.project.registry.uri=registry.gitlab.com/jitesoft/dockerfiles/ubuntu com.jitesoft.app.ubuntu.version=20.04 com.jitesoft.app.ubuntu.version.name=focal com.jitesoft.build.arch=amd64 0B buildkit.dockerfile.v0
<missing> 5 days ago ARG TARGETARCH 0B buildkit.dockerfile.v0
<missing> 5 days ago ARG TARGETPLATFORM 0B buildkit.dockerfile.v0
<missing> 5 days ago ARG NAME 0B buildkit.dockerfile.v0
<missing> 5 days ago ARG VERSION 0B buildkit.dockerfile.v0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment