From 944190eedc11d95cfe054ab766b552d3585e75f9 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Sat, 23 Nov 2019 21:53:18 +0000 Subject: [PATCH] fix(core): update --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index e7f6d9d..98fc9ac 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,4 +19,16 @@ RUN apk update && apk add --no-cache \ nodejs-npm \ && update-ca-certificates +# Add the patch fix +COPY common/stack-fix.c /lib/ + +# Prepare the libraries packages +RUN set -ex \ + && apk add --no-cache --virtual .build-deps build-base \ + && gcc -shared -fPIC /lib/stack-fix.c -o /lib/stack-fix.so \ + && apk del .build-deps + +# export the environment variable of LD_PRELOAD +ENV LD_PRELOAD /lib/stack-fix.so + RUN npm config set unsafe-perm true