ht-docker-dbase/Dockerfile

59 lines
1.2 KiB
Docker
Raw Permalink 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
2022-10-17 10:18:05 +00:00
RUN apk update && apk add bash libc6-compat alpine-sdk
ENV PYTHONUNBUFFERED=1
RUN apk add --update --no-cache python3 && ln -sf python3 /usr/bin/python
RUN python3 -m ensurepip
RUN pip3 install --no-cache --upgrade pip setuptools
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
2022-10-17 09:52:12 +00:00
#pnpm
ENV PNPM_HOME="/root/.local/share/pnpm/pnpm"
RUN mkdir -p ${PNPM_HOME}
ENV PATH="$PNPM_HOME:$PATH"
RUN curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" -o /bin/pnpm; chmod +x /bin/pnpm;
RUN pnpm -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
2023-06-25 11:07:15 +00:00
RUN pnpm config set unsafe-perm true