summaryrefslogtreecommitdiff
path: root/build/postgrest
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-02-27 10:43:29 -0500
committerFreya Murphy <freya@freyacat.org>2026-02-27 10:43:29 -0500
commit1d616b98b3a817829f95c82abd8e458ae8f9c2c3 (patch)
tree79cd2adca55e9d2dd50dd74549264d6ac1a1150b /build/postgrest
parentadd function to get http scheme (diff)
downloadcrimson-1d616b98b3a817829f95c82abd8e458ae8f9c2c3.tar.gz
crimson-1d616b98b3a817829f95c82abd8e458ae8f9c2c3.tar.bz2
crimson-1d616b98b3a817829f95c82abd8e458ae8f9c2c3.zip
update docker builds and update postgrest versionHEADmain
Diffstat (limited to 'build/postgrest')
-rw-r--r--build/postgrest/Dockerfile7
1 files changed, 6 insertions, 1 deletions
diff --git a/build/postgrest/Dockerfile b/build/postgrest/Dockerfile
index eb281d1..9fa8644 100644
--- a/build/postgrest/Dockerfile
+++ b/build/postgrest/Dockerfile
@@ -1,4 +1,6 @@
ARG ALPINE_VERSION="3.23"
+ARG POSTGREST_VERSION="14.5"
+ARG POSTGREST_ARCH="linux-static-x86-64"
FROM alpine:${ALPINE_VERSION}
# install packages
@@ -11,12 +13,15 @@ RUN groupmod --gid 1000 postgrest
RUN usermod --uid 1000 postgrest
# install postgrest
-RUN wget "https://github.com/PostgREST/postgrest/releases/download/v12.2.3/postgrest-v12.2.3-linux-static-x64.tar.xz" -O /tmp/postgrest.tar.xz
+ARG POSTGREST_VERSION
+ARG POSTGREST_ARCH
+RUN wget "https://github.com/PostgREST/postgrest/releases/download/v${POSTGREST_VERSION}/postgrest-v${POSTGREST_VERSION}-${POSTGREST_ARCH}.tar.xz" -O /tmp/postgrest.tar.xz
RUN tar xJf /tmp/postgrest.tar.xz -C /usr/local/bin
RUN rm /tmp/postgrest.tar.xz
# copy scripts
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
+RUN chmod +rx /usr/local/bin/entrypoint.sh
# remove build packages
RUN apk del shadow