22 lines
613 B
Docker
22 lines
613 B
Docker
# Despite convention, Ubuntu's "latest" tag points to the latest LTS release.
|
|
FROM docker.io/library/alpine:latest
|
|
|
|
# This is all that's required for the build process.
|
|
# Some packages are already installed but are included for completeness.
|
|
RUN apk update
|
|
RUN apk add cmd:install \
|
|
zig llvm \
|
|
make autoconf automake libtool patch \
|
|
flex bison \
|
|
curl \
|
|
tar zstd gzip bzip2 cmd:xz cmake cmd:pkg-config linux-headers
|
|
|
|
RUN install -d -o 1000 -g 1000 "/build"
|
|
COPY "Makefile" "/build/"
|
|
COPY "include" "/build/include"
|
|
VOLUME "/build"
|
|
|
|
WORKDIR "/build"
|
|
USER 1000
|
|
ENTRYPOINT ["/usr/bin/make", "-w"]
|