File: Dockerfile

package info (click to toggle)
etlcpp 20.44.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,692 kB
  • sloc: cpp: 302,710; ansic: 11,683; sh: 1,420; asm: 301; python: 281; makefile: 16
file content (20 lines) | stat: -rw-r--r-- 615 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ARG BASE_IMAGE_NAME="clang:latest"

FROM ${BASE_IMAGE_NAME}

ARG REINSTALL_CMAKE_VERSION_FROM_SOURCE="3.31.7"

# Optionally install the cmake for vcpkg
COPY ./reinstall-cmake.sh /tmp/

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
    && apt-get -y install --no-install-recommends \
        git \
        wget \
        python3-cogapp \
    && rm -rf /var/lib/apt/lists/*

RUN if [ "${REINSTALL_CMAKE_VERSION_FROM_SOURCE}" != "none" ]; then \
        chmod +x /tmp/reinstall-cmake.sh && /tmp/reinstall-cmake.sh ${REINSTALL_CMAKE_VERSION_FROM_SOURCE}; \
    fi \
    && rm -f /tmp/reinstall-cmake.sh