aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 38276f279d6c39fd7b88abf8878ff147f445b26b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM nickblah/lua:5.3-luarocks 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