blob: a84234b56d06447af63310ed4581b7f168cd34fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 git
RUN luarocks install discount DISCOUNT_INCDIR=/usr/include/x86_64-linux-gnu && \
luarocks install moonscript && \
luarocks install https://raw.githubusercontent.com/s-ol/LDoc/moonscript/ldoc-scm-2.rockspec
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
|