mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 08:19:53 +01:00
Switch to supported Nodesource installation method
This commit is contained in:
parent
97c0494416
commit
a6b4769a5d
1 changed files with 7 additions and 1 deletions
|
@ -4,11 +4,17 @@ USER root
|
|||
|
||||
ARG UID=1000
|
||||
ARG GID=1000
|
||||
ARG NODE_MAJOR=16
|
||||
|
||||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
|
||||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
|
||||
RUN apt-get update -qq \
|
||||
&& apt-get install -y ca-certificates curl gnupg \
|
||||
&& mkdir -p /etc/apt/keyrings \
|
||||
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||
|
||||
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
|
||||
|
||||
RUN apt-get update -qq \
|
||||
&& apt-get install -y --no-install-recommends build-essential \
|
||||
|
|
Loading…
Reference in a new issue