diff --git a/.gitignore b/.gitignore index 5522649..ae2b451 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ !qbittorrent/config/qBittorrent/*.conf !qbittorrent/config/qBittorrent/*.json -!stash/cron/**/* \ No newline at end of file +!stash/cron/**/* +!stash/**/* \ No newline at end of file diff --git a/stash/postgres/Dockerfile b/stash/postgres/Dockerfile new file mode 100644 index 0000000..01894d9 --- /dev/null +++ b/stash/postgres/Dockerfile @@ -0,0 +1,12 @@ +FROM postgres:14.2 + +RUN buildDeps='git make gcc postgresql-server-dev-14' \ + && 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 \ No newline at end of file