git.s-ol.nu mmm / d64d1f2
add dockerfile s-ol 4 months ago
2 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1 FROM nickblah/lua:5.3-luarocks-stretch AS build-env
2 RUN echo "deb http://ppa.launchpad.net/jonathonf/tup/ubuntu xenial main" >/etc/apt/sources.list.d/tup.list
3 RUN apt-get update
4 RUN apt-get install -y --allow-unauthenticated build-essential tup sassc libmarkdown2-dev
5 RUN luarocks install moonscript
6 RUN luarocks install discount DISCOUNT_INCDIR=/usr/include/x86_64-linux-gnu
7 COPY . /build
8 RUN cd /build && tup init && tup generate build.sh && ./build.sh
9
10 FROM nginx:alpine
11 COPY --from=build-env /build/root /usr/share/nginx/html
12 RUN chmod 555 -R /usr/share/nginx/html
11 include_rules
22
33 !download = |> ^ DOWNLOAD %O^ curl -L https://github.com/fengari-lua/fengari-web/releases/download/@(FENGARI_VERSION)/`basename %o` > %o |>
4 !sassc = |> ^ SCSS %b^ sassc -mauto %f %o |> | %o.map
4 !sassc = |> ^ SCSS %b^ sassc -m %f %o |> | %o.map
55
66 # download fengari dependencies
77 : |> !download |> root/fengari-web.js