Install nodejs in containers for statements

This commit is contained in:
Fijxu 2024-03-22 19:29:32 -03:00
parent 56f2c86b69
commit 431cdf4738
No known key found for this signature in database
GPG key ID: 32C1DDF333EDA6A4
3 changed files with 9 additions and 4 deletions

View file

@ -1,11 +1,12 @@
FROM ubuntu:20.04
LABEL maintainer="yuzu"
LABEL maintainer="suyu"
# Create a user account yuzu (UID 1027) that the container will run as
RUN useradd -m -u 1027 -s /bin/bash yuzu && \
apt-get update && apt-get -y full-upgrade && \
apt-get install -y git gpg-agent wget && \
wget https://apt.llvm.org/llvm-snapshot.gpg.key && apt-key add ./llvm-snapshot.gpg.key && \
wget -qO- https://deb.nodesource.com/setup_20.x | bash - && \
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main" >> /etc/apt/sources.list && \
apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y clang-format-15 && \
apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y clang-format-15 nodejs && \
apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
USER 1027