From 16a2a0663172a16073b48207ec1cb8c3ce90d662 Mon Sep 17 00:00:00 2001 From: Lecnets Date: Fri, 26 May 2023 03:19:09 +0000 Subject: [PATCH] fix: fontnik arm64 compatibility --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 21ca9fd..098be43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,10 +35,14 @@ RUN git clone https://github.com/mapbox/tippecanoe.git -b 1.36.0 \ && rm -rf tippecanoe # Install fontnik requirements -RUN apt-get -y update && apt-get -y install nodejs npm +RUN apt-get -y update && apt-get -y install nodejs npm curl # Install fontnik -RUN npm install -g fontnik@0.6.0 +RUN git clone -b fix-build-errors-node14 https://github.com/3nprob/node-fontnik.git ./fontnik \ + && cd fontnik \ + && mkdir .toolchain \ + && npm install --build-from-source \ + && npm link # Copy build artifacts COPY --from=build /build/.build/release /SwiftTileserverCache