From 5ff45277bedd9206ca0175e73d94965e41f3ce69 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sat, 16 Mar 2019 21:59:23 -0700 Subject: Add experimental Dockerfile --- Dockerfile | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..2d9b9f62 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,25 @@ +FROM alpine:edge +RUN apk add --no-cache alpine-sdk bison libarchive-tools linux-headers lua5.2 nasm ncurses ninja tzdata wayland-dev + +COPY . /oasis +WORKDIR oasis +COPY docker/config.lua . + +ENV PATH $PATH:/oasis/out/pkg/texi2mdoc +ENV PAXREAD bsdtar -xf - +RUN git config --global user.name oasis && \ + git config --global user.email oasis && \ + lua5.2 ./setup.lua && \ + ninja out/pkg/texi2mdoc/texi2mdoc && \ + ninja && \ + git -C out/root.git --work-tree=$PWD read-tree -u --prefix=root/ tree + +FROM scratch +COPY --from=0 /oasis/root / +COPY docker/etc /etc +RUN /libexec/applyperms -d / && \ + /libexec/applyperms -d /etc && \ + makewhatis /share/man + +ENV XDG_RUNTIME_DIR /tmp +CMD ksh -l -- cgit v1.2.3