diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-03-03 16:32:49 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-03-05 10:36:33 +0000 |
| commit | 12dc8c05854054e1bb05709afdcdeec5e8b05333 (patch) | |
| tree | cd07c81075fb311d8f6a1dfd04c66777c9187e51 /Dockerfile | |
| parent | add index and guide pages (diff) | |
| download | alive-12dc8c05854054e1bb05709afdcdeec5e8b05333.tar.gz alive-12dc8c05854054e1bb05709afdcdeec5e8b05333.zip | |
add Dockerfile for CI
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..6374991 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM nickblah/lua:5.3-luarocks-stretch AS build-env + +WORKDIR /build +RUN apt-get update && \ + apt-get install -y --allow-unauthenticated \ + build-essential m4 libmarkdown2-dev + +RUN luarocks install discount DISCOUNT_INCDIR=/usr/include/x86_64-linux-gnu && \ + luarocks install moonscript + +COPY . /build/ +RUN make docs + +FROM nginx:alpine +COPY --from=build-env /build/docs /usr/share/nginx/html +RUN chmod 555 -R /usr/share/nginx/html |
