Update Dockerfile
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -3,11 +3,13 @@ FROM ubuntu:jammy
|
||||
USER root
|
||||
RUN adduser --system mt
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install --quiet --yes curl
|
||||
RUN curl -fsSL https://deb.nodesource.com/setup_14.x | bash -
|
||||
RUN apt-get update
|
||||
RUN apt-get install --quiet --yes nodejs git
|
||||
RUN apt-get update && apt-get install -y ca-certificates curl gnupg git
|
||||
RUN mkdir -p /etc/apt/keyrings
|
||||
RUN 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_20.x nodistro main" \
|
||||
> /etc/apt/sources.list.d/nodesource.list
|
||||
RUN apt-get update && apt-get install -y nodejs
|
||||
|
||||
USER mt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user