From 88218dc7d6903bd44730e13f3bfdeb8ee77e1982 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sat, 8 Jun 2024 13:49:27 +0800 Subject: [PATCH] docker: build extensions --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index abf649c..9c8eb9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,6 +67,13 @@ RUN cd ~ && \ make -j$(grep -c ^processor /proc/cpuinfo) && make install && \ cd ~ && rm -rf sqlite-snapshot-202401231504 sqlite-snapshot-202401231504.tar.gz +COPY ./extensions /root/extensions + +RUN cd /root/extensions && \ + mkdir build && cd build && \ + cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=/clib -DCMAKE_INSTALL_PREFIX=/clib ../ && \ + make -j$(grep -c ^processor /proc/cpuinfo) && make install + FROM denoland/deno:latest as prod ARG DENO_DEPLOYMENT_ID