-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathDockerfile
85 lines (79 loc) · 3.13 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
FROM php:8.1.0-zts-bullseye AS php-8-1-x64-zts-linux-build
RUN apt update
RUN apt install libffi-dev
RUN docker-php-ext-install ffi
RUN curl http://131.123.42.38/lmcrs/v1.0.0/srcml_1.0.0-1_ubuntu20.04.deb > srcml.deb
RUN apt install -y ./srcml.deb
COPY process.php .
COPY symbols.txt .
RUN php process.php linux
FROM scratch AS php-8-1-x64-zts-linux
COPY --from=php-8-1-x64-zts-linux-build /engine-8-1-x64-zts-linux.h /
COPY --from=php-8-1-x64-zts-linux-build /constants-8-1-x64-zts-linux.php /
FROM php:8.1.0-bullseye AS php-8-1-x64-nts-linux-build
RUN apt update
RUN apt install libffi-dev
RUN docker-php-ext-install ffi
RUN curl http://131.123.42.38/lmcrs/v1.0.0/srcml_1.0.0-1_ubuntu20.04.deb > srcml.deb
RUN apt install -y ./srcml.deb
COPY process.php .
COPY symbols.txt .
RUN php process.php linux
FROM scratch AS php-8-1-x64-nts-linux
COPY --from=php-8-1-x64-nts-linux-build /engine-8-1-x64-nts-linux.h /
COPY --from=php-8-1-x64-nts-linux-build /constants-8-1-x64-nts-linux.php /
FROM php:8.0.0-zts-buster AS php-8-0-x64-zts-linux-build
RUN apt update
RUN apt install libffi-dev
RUN docker-php-ext-install ffi
RUN curl http://131.123.42.38/lmcrs/v1.0.0/srcml_1.0.0-1_ubuntu19.04.deb > srcml.deb
RUN apt install -y ./srcml.deb
COPY process.php .
COPY symbols.txt .
RUN php process.php linux
FROM scratch AS php-8-0-x64-zts-linux
COPY --from=php-8-0-x64-zts-linux-build /engine-8-0-x64-zts-linux.h /
COPY --from=php-8-0-x64-zts-linux-build /constants-8-0-x64-zts-linux.php /
FROM php:8.0.0-buster AS php-8-0-x64-nts-linux-build
RUN apt update
RUN apt install libffi-dev
RUN docker-php-ext-install ffi
RUN curl http://131.123.42.38/lmcrs/v1.0.0/srcml_1.0.0-1_ubuntu19.04.deb > srcml.deb
RUN apt install -y ./srcml.deb
COPY process.php .
COPY symbols.txt .
RUN php process.php linux
FROM scratch AS php-8-0-x64-nts-linux
COPY --from=php-8-0-x64-nts-linux-build /engine-8-0-x64-nts-linux.h /
COPY --from=php-8-0-x64-nts-linux-build /constants-8-0-x64-nts-linux.php /
FROM php:7.4.0-zts-buster AS php-7-4-x64-zts-linux-build
RUN apt update
RUN apt install libffi-dev
RUN docker-php-ext-install ffi
RUN curl http://131.123.42.38/lmcrs/v1.0.0/srcml_1.0.0-1_ubuntu19.04.deb > srcml.deb
RUN apt install -y ./srcml.deb
COPY process.php .
COPY symbols.txt .
RUN php process.php linux
FROM scratch AS php-7-4-x64-zts-linux
COPY --from=php-7-4-x64-zts-linux-build /engine-7-4-x64-zts-linux.h /
COPY --from=php-7-4-x64-zts-linux-build /constants-7-4-x64-zts-linux.php /
FROM php:7.4.0-buster AS php-7-4-x64-nts-linux-build
RUN apt update
RUN apt install libffi-dev
RUN docker-php-ext-install ffi
RUN curl http://131.123.42.38/lmcrs/v1.0.0/srcml_1.0.0-1_ubuntu19.04.deb > srcml.deb
RUN apt install -y ./srcml.deb
COPY process.php .
COPY symbols.txt .
RUN php process.php linux
FROM scratch AS php-7-4-x64-nts-linux
COPY --from=php-7-4-x64-nts-linux-build /engine-7-4-x64-nts-linux.h /
COPY --from=php-7-4-x64-nts-linux-build /constants-7-4-x64-nts-linux.php /
FROM scratch
COPY --from=php-8-1-x64-zts-linux /* /
COPY --from=php-8-1-x64-nts-linux /* /
COPY --from=php-8-0-x64-zts-linux /* /
COPY --from=php-8-0-x64-nts-linux /* /
COPY --from=php-7-4-x64-zts-linux /* /
COPY --from=php-7-4-x64-nts-linux /* /