Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
okrc authored Jul 8, 2024
1 parent 8ee3bb4 commit 70ea3c8
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
FROM debian:stable-slim
FROM buildpack-deps:curl
ARG LLVM_VERSION=14
ENV LLVM_VERSION=${LLVM_VERSION}
ARG TZ=Etc/GMT-8
ENV TZ=${TZ}
RUN set -eux; \
apt-get update; \
DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes \
curl ca-certificates gpg xz-utils make flex bison libssl-dev libelf-dev bc python3-minimal dwarves tzdata cpio clang-${LLVM_VERSION} lld-${LLVM_VERSION} llvm-${LLVM_VERSION}; \
# curl -fsSL https://apt.llvm.org/llvm-snapshot.gpg.key | \
# gpg --dearmor -o /usr/share/keyrings/llvm-apt-archive-keyring.gpg; \
# . /etc/os-release; \
# echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/llvm-apt-archive-keyring.gpg] \
# https://apt.llvm.org/$VERSION_CODENAME llvm-toolchain-$VERSION_CODENAME-$LLVM_VERSION main" | \
# tee /etc/apt/sources.list.d/llvm-apt.list >/dev/null; \
# apt-get update; \
# DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends --yes \
# clang-$LLVM_VERSION lld-$LLVM_VERSION llvm-$LLVM_VERSION; \
apt-get update; \
apt-get install --no-install-recommends --yes \
xz-utils make flex bison libssl-dev libelf-dev bc python3-minimal dwarves tzdata cpio clang-${LLVM_VERSION} lld-${LLVM_VERSION} llvm-${LLVM_VERSION}; \
update-alternatives --install /usr/bin/cc cc /usr/bin/clang-$LLVM_VERSION 100; \
rm -rf /var/lib/apt/lists/*

0 comments on commit 70ea3c8

Please sign in to comment.