2019-08-27 15:47:10 +00:00
|
|
|
FROM docker:19.03.1
|
2016-06-02 12:30:15 +00:00
|
|
|
|
2018-12-12 22:18:55 +00:00
|
|
|
RUN apk update && apk add --no-cache \
|
2019-08-27 15:47:10 +00:00
|
|
|
git \
|
2018-05-04 11:06:23 +00:00
|
|
|
openssl \
|
|
|
|
ca-certificates \
|
|
|
|
bash \
|
|
|
|
curl \
|
|
|
|
make \
|
|
|
|
gcc \
|
|
|
|
g++ \
|
|
|
|
python \
|
|
|
|
linux-headers \
|
|
|
|
paxctl \
|
|
|
|
libgcc \
|
|
|
|
libstdc++ \
|
|
|
|
gnupg \
|
2021-02-27 00:13:01 +00:00
|
|
|
nodejs-current \
|
2018-12-12 22:18:55 +00:00
|
|
|
nodejs-npm \
|
2019-11-23 21:58:51 +00:00
|
|
|
krb5-libs \
|
2018-05-04 11:06:23 +00:00
|
|
|
&& update-ca-certificates
|
2017-03-28 23:15:29 +00:00
|
|
|
|
2019-11-23 21:53:18 +00:00
|
|
|
# Add the patch fix
|
2019-11-23 21:58:13 +00:00
|
|
|
COPY ./stack-fix.c /lib/
|
2019-11-23 21:53:18 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
|
|
2017-06-30 15:04:49 +00:00
|
|
|
RUN npm config set unsafe-perm true
|
2021-02-27 00:32:18 +00:00
|
|
|
RUN apk add --update py-pip && pip install docker-compose
|
|
|
|
|