-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
47 lines (35 loc) · 899 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ARG BASE=alpine
# ----------------------------------------------------------------------------
# alpine edge has recent meson version
FROM alpine:edge AS alpine
RUN apk add --no-cache \
bash \
curl \
gcc \
git \
linux-headers \
make \
meson \
musl-dev \
ncurses \
perl \
wget
# add musl-gcc so its consistent CC with ubuntu
RUN ln -s $(which gcc) /usr/bin/musl-gcc
# ----------------------------------------------------------------------------
FROM ubuntu:24.04 AS ubuntu
ENV PATH=/root/.local/bin:$PATH
RUN apt-get update && apt-get install -y \
build-essential \
curl \
gcc-14 \
make \
musl-tools \
ninja-build \
pipx \
wget
# get latest meson via pipx as apt has ancient version
RUN pipx install meson
# ----------------------------------------------------------------------------
FROM $BASE
ENV CC=musl-gcc