diff options
Diffstat (limited to 'build/postgrest')
| -rw-r--r-- | build/postgrest/Dockerfile | 7 |
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 |