mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
Merge pull request #634 from turbo124/debian
conditionally build saxon on amd64 only.
This commit is contained in:
2
.github/workflows/publish-image.yaml
vendored
2
.github/workflows/publish-image.yaml
vendored
@@ -1,4 +1,4 @@
|
||||
name: Publish Debian and Alpine Container Images
|
||||
name: Publish Debian Container Images
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
24
debian/Dockerfile
vendored
24
debian/Dockerfile
vendored
@@ -95,18 +95,18 @@ COPY php/php-fpm.conf /usr/local/etc/php-fpm.d/www.conf
|
||||
# Configure Saxon
|
||||
WORKDIR /opt
|
||||
|
||||
## fetch
|
||||
RUN curl https://downloads.saxonica.com/SaxonC/HE/12/libsaxon-HEC-linux-x86_64-v${saxon}.zip --output saxon.zip
|
||||
RUN unzip saxon.zip -d saxon
|
||||
RUN cp saxon/libsaxon-HEC-linux-amd64-v${saxon}/libs/nix/libsaxon-hec-${saxon}.so /usr/lib/
|
||||
WORKDIR /opt/saxon/libsaxon-HEC-linux-amd64-v${saxon}/Saxon.C.API
|
||||
RUN phpize
|
||||
RUN ./configure --enable-saxon
|
||||
RUN make
|
||||
RUN ls -al
|
||||
RUN make install
|
||||
RUN echo 'extension=saxon.so' > "/usr/local/etc/php/conf.d/app.ini"
|
||||
|
||||
RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \
|
||||
curl https://downloads.saxonica.com/SaxonC/HE/12/libsaxon-HEC-linux-x86_64-v${saxon}.zip --output saxon.zip \
|
||||
&& unzip saxon.zip -d saxon \
|
||||
&& cp saxon/libsaxon-HEC-linux-amd64-v${saxon}/libs/nix/libsaxon-hec-${saxon}.so /usr/lib/ \
|
||||
&& cd /opt/saxon/libsaxon-HEC-linux-amd64-v${saxon}/Saxon.C.API \
|
||||
&& phpize \
|
||||
&& ./configure --enable-saxon \
|
||||
&& make \
|
||||
&& make install \
|
||||
&& echo 'extension=saxon.so' > "/usr/local/etc/php/conf.d/app.ini"; \
|
||||
fi
|
||||
|
||||
# Copy scripts
|
||||
COPY rootfs /
|
||||
|
||||
|
||||
Reference in New Issue
Block a user