-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (29 loc) · 1.64 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM debian:10-slim
MAINTAINER Sebastian <[email protected]>
ENV LAZARUS_LINK="https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.12/lazarus-project_2.0.12-0_amd64.deb/download"
ENV FPC_LAZ_LINK="https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.12/fpc-laz_3.2.0-1_amd64.deb/download"
ENV FPC_SRC_LINK="https://sourceforge.net/projects/lazarus/files/Lazarus%20Linux%20amd64%20DEB/Lazarus%202.0.12/fpc-src_3.2.0-1_amd64.deb/download"
ENV FPC_VERSION="3.2.0"
RUN apt-get update && \
apt-get install -y --no-install-recommends wget binutils libgtk2.0-dev ca-certificates make
RUN wget -nv $FPC_LAZ_LINK -O fpc-laz_amd64.deb && \
dpkg -i fpc-laz_amd64.deb && \
rm fpc-laz_amd64.deb
RUN wget -nv $FPC_SRC_LINK -O fpc-src_amd64.deb && \
dpkg -i fpc-src_amd64.deb && \
rm fpc-src_amd64.deb
RUN wget -nv $LAZARUS_LINK -O lazarus-project_amd64.deb && \
dpkg -i lazarus-project_amd64.deb && \
rm lazarus-project_amd64.deb
RUN cd /usr/share/fpcsrc/$FPC_VERSION && \
make clean all OS_TARGET=win32 CPU_TARGET=i386 && \
make crossinstall OS_TARGET=win32 CPU_TARGET=i386 INSTALL_PREFIX=/usr && \
ln -sf /usr/lib/fpc/$FPC_VERSION/ppcross386 /usr/bin/ppcross386
RUN cd /usr/share/fpcsrc/$FPC_VERSION && \
make clean all OS_TARGET=win64 CPU_TARGET=x86_64 && \
make crossinstall OS_TARGET=win64 CPU_TARGET=x86_64 INSTALL_PREFIX=/usr && \
ln -sf /usr/lib/fpc/$FPC_VERSION/ppcrossx64 /usr/bin/ppcrossx64
RUN cd /usr/share/fpcsrc/$FPC_VERSION && \
make clean
RUN rm -r /usr/share/lazarus/*/docs && \
rm -r /usr/share/lazarus/*/examples