mirror of https://github.com/perkeep/perkeep.git
21 lines
966 B
Docker
21 lines
966 B
Docker
![]() |
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"
|