mirror of https://github.com/perkeep/perkeep.git
docker image for a static djpeg
updates #564 Change-Id: Idf40aa915e20c0584ed02ecab90b304dc159a371
This commit is contained in:
parent
376e53ccd5
commit
1b087e719c
|
@ -0,0 +1,20 @@
|
|||
FROM debian:stable
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN apt-get update && apt-get -y upgrade
|
||||
RUN apt-get -y install curl make libtool bzip2 nasm
|
||||
|
||||
# Fetch and extract the toolchain from Aboriginal Linux. This can build static binaries.
|
||||
WORKDIR /tmp
|
||||
RUN curl -O http://landley.net/aboriginal/downloads/old/binaries/1.3.0/cross-compiler-x86_64.tar.bz2
|
||||
RUN echo '1587ea6d018e419b7fd31b738fa7c1db1af97ff7 cross-compiler-x86_64.tar.bz2' | sha1sum -c
|
||||
RUN tar xf cross-compiler-x86_64.tar.bz2 -C /usr/local/
|
||||
ENV PATH /usr/local/cross-compiler-x86_64/bin:$PATH
|
||||
|
||||
# Fetch and build djpeg.
|
||||
RUN curl -O -L https://downloads.sourceforge.net/project/libjpeg-turbo/1.4.0/libjpeg-turbo-1.4.0.tar.gz
|
||||
RUN echo 'a9ed7a99a6090e0848836c5df8e836f300a098b9 libjpeg-turbo-1.4.0.tar.gz' | sha1sum -c
|
||||
RUN mkdir /src
|
||||
RUN tar xf libjpeg-turbo-1.4.0.tar.gz -C /src
|
||||
WORKDIR /src/libjpeg-turbo-1.4.0
|
||||
RUN ./configure CXX=x86_64-c++ CC=x86_64-gcc LDFLAGS="-static"
|
||||
RUN make LDFLAGS="-all-static"
|
|
@ -0,0 +1,5 @@
|
|||
djpeg: docker
|
||||
docker run --rm -it -v $(CURDIR):/out djpeg-static cp /src/libjpeg-turbo-1.4.0/djpeg /out/djpeg
|
||||
|
||||
docker: Dockerfile
|
||||
docker build -t djpeg-static .
|
Loading…
Reference in New Issue