Skip to content

Commit

Permalink
fix: remove deprecated nodesource script
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalgonsalves committed Sep 27, 2023
1 parent 9c1785c commit bfe076f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ FROM golang:1.20-bullseye as builder

ARG VERSION=dev
ARG COMMIT=unknown

RUN apt-get update
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash
RUN apt-get install -y \
build-essential \
nodejs \
python3-pip
ARG NODE_MAJOR=18

RUN apt-get update && apt-get install -y \
build-essential 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 \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" >> /etc/apt/sources.list.d/nodesource.list \
&& apt-get update \
&& apt-get install -y \
python3-pip nodejs \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /app
ADD Makefile .
Expand Down

0 comments on commit bfe076f

Please sign in to comment.