-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
24 lines (17 loc) · 950 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
FROM alpine:3.18 AS buildbase
RUN apk add --update --no-cache clang llvm lld cmake make pkgconf
RUN apk add --update --no-cache build-base flex bison
LABEL org.opencontainers.image.source https://github.com/XboxDev/nxdk-buildbase
FROM alpine:3.18 AS runbase
RUN apk add --update --no-cache clang llvm lld cmake make pkgconf
# Download and install glibc
RUN GLIBC_VERSION="2.35-r1" && \
apk add --update --no-cache curl && \
curl -Lo /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
curl -Lo glibc.apk "https://github.com/sgerrand/alpine-pkg-glibc/releases/download/${GLIBC_VERSION}/glibc-${GLIBC_VERSION}.apk" && \
apk add --force-overwrite glibc.apk && \
apk del curl && \
rm -rf glibc.apk && \
mkdir -p /lib64 && \
ln -s /usr/glibc-compat/lib/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2
LABEL org.opencontainers.image.source https://github.com/XboxDev/nxdk-buildbase