mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
79414cb225
Add brotli library dependencies to the server docker image. The compression feature introduced in #2751 requires brotli shared libraries at runtime. In original PR, adding them to server packager image was missing.
15 lines
800 B
Plaintext
15 lines
800 B
Plaintext
FROM hasura/haskell-docker-packager:20190731
|
|
MAINTAINER vamshi@hasura.io
|
|
|
|
RUN apt-get update && apt-get install -y libpq5 upx git cmake pkgconf \
|
|
&& update-ca-certificates \
|
|
&& mkdir -p /usr/src/busybox/rootfs/etc/ssl/certs \
|
|
&& cp -L /etc/ssl/certs/* /usr/src/busybox/rootfs/etc/ssl/certs/ \
|
|
&& git clone https://github.com/google/brotli.git && cd brotli && mkdir out && cd out && ../configure-cmake \
|
|
&& make && make test && make install && ldconfig && cd ../../ \
|
|
&& rm -rf brotli \
|
|
&& cp /usr/local/lib/libbrotlienc.so.1 /usr/src/busybox/rootfs/usr/lib/x86_64-linux-gnu \
|
|
&& cp /usr/local/lib/libbrotlidec.so.1 /usr/src/busybox/rootfs/usr/lib/x86_64-linux-gnu \
|
|
&& cp /usr/local/lib/libbrotlicommon.so.1 /usr/src/busybox/rootfs/usr/lib/x86_64-linux-gnu \
|
|
&& rm -rf /var/lib/apt/lists/*
|