mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-04 11:55:51 +00:00
33 lines
856 B
Docker
33 lines
856 B
Docker
FROM ubuntu:20.04
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
# hadolint ignore=DL3002
|
|
USER root
|
|
WORKDIR /root
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
|
wget \
|
|
software-properties-common \
|
|
gnupg \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG CLANG_MAJOR_VERSION=invalid
|
|
# Bump this version to force rebuild of the image
|
|
ARG BUILD_VERSION=1
|
|
|
|
RUN wget --progress=dot:giga https://apt.llvm.org/llvm.sh \
|
|
&& chmod +x llvm.sh \
|
|
&& ./llvm.sh ${CLANG_MAJOR_VERSION} \
|
|
&& rm -rf llvm.sh \
|
|
&& apt-get update \
|
|
&& apt-get install -y --no-install-recommends --no-install-suggests \
|
|
libc++-${CLANG_MAJOR_VERSION}-dev \
|
|
libc++abi-${CLANG_MAJOR_VERSION}-dev \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|