|
21 | 21 | #
|
22 | 22 |
|
23 | 23 | # Use Debian Bullseye (which is the base of gcr.io/distroless/java:17) for additional library dependencies that we need
|
24 |
| -FROM debian:bullseye-slim as debian-slim |
25 |
| -RUN apt-get update && apt-get -y dist-upgrade |
26 |
| -RUN apt-get install -y openjdk-17-jre-headless |
27 |
| -RUN apt-get install -y expat fontconfig # Install tools required by FOP |
| 24 | +# FROM debian:bullseye-slim as debian-slim |
| 25 | +# RUN apt-get update && apt-get -y dist-upgrade |
| 26 | +# RUN apt-get install -y openjdk-17-jre-headless |
| 27 | +# RUN apt-get install -y expat fontconfig # Install tools required by FOP |
28 | 28 |
|
29 | 29 | FROM gcr.io/distroless/java17:latest
|
30 | 30 |
|
31 | 31 | # Copy over dependencies for Apache FOP, missing from GCR's JRE
|
32 |
| -COPY --from=debian-slim /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 |
33 |
| -COPY --from=debian-slim /usr/lib/x86_64-linux-gnu/liblcms2.so.2 /usr/lib/x86_64-linux-gnu/liblcms2.so.2 |
34 |
| -COPY --from=debian-slim /usr/lib/x86_64-linux-gnu/libpng16.so.16 /usr/lib/x86_64-linux-gnu/libpng16.so.16 |
35 |
| -COPY --from=debian-slim /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 |
| 32 | +# COPY --from=debian-slim /usr/lib/x86_64-linux-gnu/libfreetype.so.6 /usr/lib/x86_64-linux-gnu/libfreetype.so.6 |
| 33 | +# COPY --from=debian-slim /usr/lib/x86_64-linux-gnu/liblcms2.so.2 /usr/lib/x86_64-linux-gnu/liblcms2.so.2 |
| 34 | +# COPY --from=debian-slim /usr/lib/x86_64-linux-gnu/libpng16.so.16 /usr/lib/x86_64-linux-gnu/libpng16.so.16 |
| 35 | +# COPY --from=debian-slim /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 |
36 | 36 |
|
37 | 37 | # Copy dependencies for Apache Batik (used by Apache FOP to handle SVG rendering)
|
38 |
| -COPY --from=debian-slim /etc/fonts /etc/fonts |
39 |
| -COPY --from=debian-slim /lib/x86_64-linux-gnu/libexpat.so.1 /lib/x86_64-linux-gnu/libexpat.so.1 |
40 |
| -COPY --from=debian-slim /usr/share/fontconfig /usr/share/fontconfig |
41 |
| -COPY --from=debian-slim /usr/share/fonts/truetype/dejavu /usr/share/fonts/truetype/dejavu |
| 38 | +# COPY --from=debian-slim /etc/fonts /etc/fonts |
| 39 | +# COPY --from=debian-slim /lib/x86_64-linux-gnu/libexpat.so.1 /lib/x86_64-linux-gnu/libexpat.so.1 |
| 40 | +# COPY --from=debian-slim /usr/share/fontconfig /usr/share/fontconfig |
| 41 | +# COPY --from=debian-slim /usr/share/fonts/truetype/dejavu /usr/share/fonts/truetype/dejavu |
42 | 42 |
|
43 | 43 | # Copy eXist-db
|
44 | 44 | COPY LICENSE /exist/LICENSE
|
|
0 commit comments