build-environments/linux-clang-format/Dockerfile
Fijxu 5597d10b13
All checks were successful
Suyu Docker Image CI / build (linux-clang-format) (push) Successful in 1m47s
Suyu Docker Image CI / build (linux-fresh) (push) Successful in 6m58s
Suyu Docker Image CI / build (linux-mingw) (push) Successful in 14m18s
Update Image users
2024-03-23 15:52:15 -03:00

12 lines
760 B
Docker

FROM ubuntu:20.04
LABEL maintainer="suyu"
# Create a user account suyu (UID 1027) that the container will run as
RUN useradd -m -u 1027 -s /bin/bash suyu && \
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 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