mirror of
https://github.com/BillyOutlast/stash-box.git
synced 2026-02-04 02:51:17 +01:00
13 lines
466 B
Docker
13 lines
466 B
Docker
FROM postgres:16.3
|
|
|
|
RUN buildDeps='git make gcc postgresql-server-dev-16 clang' \
|
|
&& apt update && apt install -y $buildDeps --no-install-recommends --reinstall ca-certificates \
|
|
&& git clone https://github.com/fake-name/pg-spgist_hamming.git \
|
|
&& make -C pg-spgist_hamming/bktree \
|
|
&& make -C pg-spgist_hamming/bktree install \
|
|
&& rm -rf pg-spgist_hamming \
|
|
&& apt purge -y --auto-remove $buildDeps
|
|
|
|
EXPOSE 5432
|
|
CMD ["docker-entrypoint.sh", "postgres"]
|