diff --git a/docker/Dockerfile b/docker/Dockerfile index 67ece19..cf94c56 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -24,6 +24,17 @@ RUN apt-get update && \ RUN curl -L cpanmin.us | perl - -n Mojolicious RUN cpan install Pg::Explain + +WORKDIR /tmp +RUN curl https://gitlab.com/depesz/pg-sql-prettyprinter/-/archive/main/pg-sql-prettyprinter-main.tar.bz2 -o pg-sql-prettyprinter-main.tar.bz2 && \ + tar xjvf pg-sql-prettyprinter-main.tar.bz2 && \ + cd pg-sql-prettyprinter-main && \ + perl Build.PL && \ + ./Build && \ + ./Build test && \ + ./Build install +WORKDIR /explain + COPY docker/explain.json explain.pl ./ ENTRYPOINT /explain/explain.pl daemon