mirror of
https://github.com/binwiederhier/ntfy.git
synced 2024-11-23 03:24:27 +03:00
fix: remove deprecated nodesource script
This commit is contained in:
parent
66ef28c2e2
commit
5913142389
@ -2,13 +2,17 @@ FROM golang:1.20-bullseye as builder
|
|||||||
|
|
||||||
ARG VERSION=dev
|
ARG VERSION=dev
|
||||||
ARG COMMIT=unknown
|
ARG COMMIT=unknown
|
||||||
|
ARG NODE_MAJOR=18
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update && apt-get install -y \
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash
|
build-essential ca-certificates curl gnupg \
|
||||||
RUN apt-get install -y \
|
&& mkdir -p /etc/apt/keyrings \
|
||||||
build-essential \
|
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
|
||||||
nodejs \
|
&& 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 \
|
||||||
python3-pip
|
&& apt-get update \
|
||||||
|
&& apt-get install -y \
|
||||||
|
python3-pip nodejs \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD Makefile .
|
ADD Makefile .
|
||||||
|
Loading…
Reference in New Issue
Block a user