aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..652a9a7
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,12 @@
+FROM nickblah/lua:5.3-luarocks-stretch AS build-env
+RUN echo "deb http://ppa.launchpad.net/jonathonf/tup/ubuntu xenial main" >/etc/apt/sources.list.d/tup.list
+RUN apt-get update
+RUN apt-get install -y --allow-unauthenticated build-essential tup sassc libmarkdown2-dev
+RUN luarocks install moonscript
+RUN luarocks install discount DISCOUNT_INCDIR=/usr/include/x86_64-linux-gnu
+COPY . /build
+RUN cd /build && tup init && tup generate build.sh && ./build.sh
+
+FROM nginx:alpine
+COPY --from=build-env /build/root /usr/share/nginx/html
+RUN chmod 555 -R /usr/share/nginx/html