diff options
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 25 |
1 files changed, 25 insertions, 0 deletions
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 |
