ht-docker-dbase/Dockerfile

46 lines
794 B
Docker
Raw Normal View History

2022-01-27 23:21:20 +00:00
FROM docker:20.10.8
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 \
2022-01-27 23:38:45 +00:00
openssl-dev \
2018-05-04 11:06:23 +00:00
ca-certificates \
bash \
curl \
make \
gcc \
g++ \
2022-01-27 23:27:19 +00:00
python3 \
2022-01-27 23:38:45 +00:00
python3-dev \
2022-01-27 23:27:19 +00:00
py3-pip \
2018-05-04 11:06:23 +00:00
linux-headers \
paxctl \
libgcc \
libstdc++ \
gnupg \
2022-01-27 23:21:20 +00:00
nodejs-current \
2022-01-27 23:16:52 +00:00
npm \
2019-11-23 21:58:51 +00:00
krb5-libs \
2022-01-27 23:38:45 +00:00
&& update-ca-certificates \
rust \
docker-cli \
libffi-dev \
2022-01-27 23:52:07 +00:00
libc-dev \
docker-compose
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
2022-01-27 23:16:52 +00:00
RUN node -v && npm -v
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