File: Dockerfile

package info (click to toggle)
ccache 4.12.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,192 kB
  • sloc: cpp: 47,336; asm: 28,570; sh: 8,709; ansic: 5,357; python: 685; perl: 68; makefile: 23
file content (21 lines) | stat: -rw-r--r-- 444 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG BASE_IMAGE=alpine:3.21
FROM ${BASE_IMAGE} AS build

RUN apk add --no-cache \
        bash \
        ccache \
        clang \
        cmake \
        elfutils \
        g++ \
        gcc \
        hiredis-dev \
        libc-dev \
        make \
        perl \
        python3 \
        redis \
        zstd-dev

# Redirect all compilers to ccache.
RUN for t in gcc g++ cc c++ clang clang++; do ln -vs /usr/bin/ccache /usr/local/bin/$t; done