Public | Automated Build

Last pushed: a year ago
Short Description
Build a mozjpeg (currently 3.1) Debian package for Ubuntu/Debian/variants.
Full Description

mozjpeg Dockerfile

Produces a working mozjpeg binary deb distribution, suitable for Ubuntu (tested under 16.04LTS) and possibly Debian/variants.

Docker image uses Ubuntu 16.04LTS as the base, deb package is produced using checkinstall.

The resulting binaries/libs are installed to /opt/mozjpeg/ (as not to clash with libjpeg-turbo* packages) - but you could always change make options or symlink things.

Image has also been pushed to Docker Hub.

Not sure what mozjpeg is?


With Docker already installed and working on host system:

$ ./
# waiting... as Docker builds image

# or alternatively to ./
# $ docker pull magnetikonline/mozjpegdeb

$ ./
# package extract from container

$ ls -l mozjpeg_3.1-1_amd64.deb
-rw-r--r-- 1 root root 385818 Sep 15 17:21 mozjpeg_3.1-1_amd64.deb

$ sudo dpkg -i mozjpeg_3.1-1_amd64.deb
# installing package to host system...

$ /opt/mozjpeg/bin/jpegtran -v -version
mozjpeg version 3.1 (build 20150614)
Copyright (C) 1991-2012 Thomas G. Lane, Guido Vollbeding
Copyright (C) 1999-2006 MIYASAKA Masaru
Copyright (C) 2009 Pierre Ossman for Cendio AB
Copyright (C) 2009-2014 D. R. Commander
Copyright (C) 2009-2011 Nokia Corporation and/or its subsidiary(-ies)
Copyright (C) 2014 Mozilla Corporation
Copyright (C) 2013-2014 MIPS Technologies, Inc.
Copyright (C) 2013 Linaro Limited

Emulating The Independent JPEG Group's software, version 6b  27-Mar-1998

mozjpeg version 3.1 (build 20150614)


Docker Pull Command
Source Repository

Comments (0)