ht-docker-node/Dockerfile_alpine

16 lines
593 B
Plaintext
Raw Normal View History

2022-10-18 23:04:27 +00:00
FROM node:19.0.0-alpine
2018-11-28 21:37:03 +00:00
LABEL author="Lossless GmbH <hello@lossless.com>"
2021-05-05 13:48:18 +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
2022-10-11 08:42:42 +00:00
#pnpm
ENV PNPM_HOME="/root/.local/share/pnpm/pnpm"
RUN mkdir -p ${PNPM_HOME}
ENV PATH="$PNPM_HOME:$PATH"
2022-10-11 08:06:18 +00:00
RUN curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" -o /bin/pnpm; chmod +x /bin/pnpm;
2022-10-11 08:42:42 +00:00
RUN pnpm -v
2021-05-05 13:48:18 +00:00
2019-09-19 17:34:27 +00:00
ENV NODE_OPTIONS="--max_old_space_size=1000"