FROM alpine:3.19
COPY ./postgrest.tar.xz /tmp/postgrest.tar.xz
RUN tar xJf /tmp/postgrest.tar.xz -C /tmp
RUN cp /tmp/postgrest /usr/local/bin/postgrest
RUN rm /tmp/postgrest.tar.xz
COPY ./entrypoint.sh /usr/local/bin/entrypoint.sh
CMD ["/usr/local/bin/entrypoint.sh"]