Files
lazarus-build-linux64/Dockerfile
Kirill Krasnov eb6b1bf63b Initial commit
2018-04-10 19:45:06 +02:00

37 lines
978 B
Docker

FROM debian:latest
MAINTAINER Kirill Krasnov
WORKDIR /build
ENV mirror https://downloads.sourceforge.net/project/lazarus/Lazarus%20Linux%20amd64%20DEB/Lazarus%201.8.2
ENV svn https://svn.freepascal.org/svn/fpcbuild/branches/fixes_3_0/install
ENV fpc fpc_3.0.4-2_amd64.deb
ENV fpc_src fpc-src_3.0.4-2_amd64.deb
ENV lazarus lazarus-project_1.8.2-0_amd64.deb
RUN \
dpkg --add-architecture i386 && \
apt-get update && \
apt-get -y --no-install-recommends install \
wget \
ca-certificates \
binutils \
build-essential \
gcc \
git \
libgtk2.0-dev && \
for pkg in "${fpc}" "${fpc_src}" "${lazarus}"; do \
wget -q ${mirror}/${pkg} && \
dpkg -i ./${pkg} && \
rm ./${pkg}; \
done && \
apt-get -y -f install && \
apt-get purge -y wget && \
apt-get clean -y && \
apt-get autoclean -y && \
apt-get autoremove -y && \
rm -rf /var/cache/debconf/*-old && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /usr/share/doc/* && \
rm -rf /tmp/* && \
rm -rf /var/tmp/*