Skip to content

Commit a1ed428

Browse files
committed
fix: build supautils from source
1 parent 2cac196 commit a1ed428

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

docker/orioledb/Dockerfile

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -754,20 +754,18 @@ RUN checkinstall -D --install=no --fstrans=no --backup=no --pakdir=/tmp --nodoc
754754
####################
755755
# internal/supautils.yml
756756
####################
757-
FROM base as supautils
758-
# Download package archive
759-
ARG supautils_release
760-
ADD "https://github.com/supabase/supautils/releases/download/v${supautils_release}/supautils-v${supautils_release}-pg${postgresql_major}-${TARGETARCH}-linux-gnu.deb" \
761-
/tmp/supautils.deb
762-
763-
FROM base as supautils-source
757+
FROM ccache as supautils-source
764758
ARG supautils_release
765759
ARG supautils_release_checksum
766760
ADD --checksum=${supautils_release_checksum} \
767761
"https://github.com/supabase/supautils/archive/refs/tags/v${supautils_release}.tar.gz" \
768762
/tmp/supautils.tar.gz
769763
RUN tar -xvf /tmp/supautils.tar.gz -C /tmp && \
770764
rm -rf /tmp/supautils.tar.gz
765+
# Install build dependencies
766+
RUN apt-get update && apt-get install -y --no-install-recommends \
767+
libicu-dev \
768+
&& rm -rf /var/lib/apt/lists/*
771769
# Build from source
772770
WORKDIR /tmp/supautils-${supautils_release}
773771
RUN --mount=type=cache,target=/ccache,from=public.ecr.aws/supabase/postgres:ccache \
@@ -820,7 +818,7 @@ COPY --from=hypopg-source /tmp/*.deb /tmp/
820818
COPY --from=pg_repack-source /tmp/*.deb /tmp/
821819
COPY --from=pgvector-source /tmp/*.deb /tmp/
822820
COPY --from=pg_tle-source /tmp/*.deb /tmp/
823-
COPY --from=supautils /tmp/*.deb /tmp/
821+
COPY --from=supautils-source /tmp/*.deb /tmp/
824822

825823
####################
826824
# Build final image

0 commit comments

Comments
 (0)