mirror of
https://git.suyu.dev/suyu/ci-docker.git
synced 2026-01-04 13:44:42 +01:00
Update Dockerfile
This commit is contained in:
parent
d145e1e709
commit
9a0b764f85
1 changed files with 2 additions and 4 deletions
|
|
@ -1,11 +1,9 @@
|
|||
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 && \
|
||||
|
||||
RUN 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 && \
|
||||
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 clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/apt /var/lib/dpkg /var/lib/cache /var/lib/log
|
||||
USER 1027
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue