aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-03-03 16:32:49 +0000
committers-ol <s-ol@users.noreply.github.com>2020-03-05 10:36:33 +0000
commit12dc8c05854054e1bb05709afdcdeec5e8b05333 (patch)
treecd07c81075fb311d8f6a1dfd04c66777c9187e51 /Dockerfile
parentadd index and guide pages (diff)
downloadalive-12dc8c05854054e1bb05709afdcdeec5e8b05333.tar.gz
alive-12dc8c05854054e1bb05709afdcdeec5e8b05333.zip
add Dockerfile for CI
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile16
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