Skip to content

Commit 08b40f3

Browse files
authored
[Gnupg] Add missing libraries (#401)
1 parent 39a00c8 commit 08b40f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

layers/gnupg/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ ARG PHP_VERSION
22
FROM bref/build-php-$PHP_VERSION:1.7.14 AS ext
33

44
ENV LD_LIBRARY_PATH=/usr/lib:/usr/lib64:$LD_LIBRARY_PATH
5-
65
RUN yum install -y gpgme-devel
76

87
RUN pecl install gnupg
98
RUN cp `php-config --extension-dir`/gnupg.so /tmp/gnupg.so
109
RUN echo 'extension=/opt/bref-extra/gnupg.so' > /tmp/ext.ini
1110

12-
# Build the final image with just the files we need
1311
FROM scratch
1412

15-
# Copy things we installed to the final image
13+
COPY --from=ext /usr/lib64/libgpgme.so.11.8.1 /opt/bref/lib64/libgpgme.so.11
14+
COPY --from=ext /usr/lib64/libassuan.so.0.4.0 /opt/bref/lib64/libassuan.so.0
15+
COPY --from=ext /usr/lib64/libgcrypt.so.11.8.2 /opt/bref/lib64/libgcrypt.so.11
1616

1717
COPY --from=ext /tmp/gnupg.so /opt/bref-extra/gnupg.so
1818
COPY --from=ext /tmp/ext.ini /opt/bref/etc/php/conf.d/ext-gnupg.ini

0 commit comments

Comments
 (0)