fix(core): update

This commit is contained in:
Philipp Kunz 2019-11-23 21:53:18 +00:00
parent ad3e4ad739
commit 944190eedc

View File

@ -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