2020-04-25 02:12:02 +02:00
|
|
|
FROM ubuntu:20.04
|
2024-03-22 23:29:32 +01:00
|
|
|
LABEL maintainer="suyu"
|
2024-03-23 19:50:14 +01:00
|
|
|
# Create a user account suyu (UID 1027) that the container will run as
|
|
|
|
RUN useradd -m -u 1027 -s /bin/bash suyu && \
|
2020-05-01 06:39:10 +02:00
|
|
|
apt-get update && apt-get -y full-upgrade && \
|
2023-01-29 21:45:57 +01:00
|
|
|
apt-get install -y git gpg-agent wget && \
|
|
|
|
wget https://apt.llvm.org/llvm-snapshot.gpg.key && apt-key add ./llvm-snapshot.gpg.key && \
|
2024-03-22 23:29:32 +01:00
|
|
|
wget -qO- https://deb.nodesource.com/setup_20.x | bash - && \
|
2023-01-29 21:45:57 +01:00
|
|
|
echo "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-15 main" >> /etc/apt/sources.list && \
|
2024-03-22 23:29:32 +01:00
|
|
|
apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y clang-format-15 nodejs && \
|
2020-05-01 06:39:10 +02:00
|
|
|
apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
|
2020-05-08 04:22:08 +02:00
|
|
|
USER 1027
|