Update Dockerfile
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -3,11 +3,13 @@ FROM ubuntu:jammy
|
|||||||
USER root
|
USER root
|
||||||
RUN adduser --system mt
|
RUN adduser --system mt
|
||||||
|
|
||||||
RUN apt-get update
|
RUN apt-get update && apt-get install -y ca-certificates curl gnupg git
|
||||||
RUN apt-get install --quiet --yes curl
|
RUN mkdir -p /etc/apt/keyrings
|
||||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
|
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
|
||||||
RUN apt-get update
|
| gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
|
||||||
RUN apt-get install --quiet --yes nodejs git
|
RUN echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" \
|
||||||
|
> /etc/apt/sources.list.d/nodesource.list
|
||||||
|
RUN apt-get update && apt-get install -y nodejs
|
||||||
|
|
||||||
USER mt
|
USER mt
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user