diff options
| author | Michael Forney <mforney@mforney.org> | 2019-03-16 21:59:23 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-03-16 21:59:50 -0700 |
| commit | 5ff45277bedd9206ca0175e73d94965e41f3ce69 (patch) | |
| tree | c7fa94737df7516147216afc83064c8ad1324c7f /Dockerfile | |
| parent | b25fdc22bc324ba4d6c27b7a6711686dfac2aa8e (diff) | |
Add experimental Dockerfile
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 |
