aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile17
1 files changed, 17 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..c84125c
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,17 @@
+FROM debian:testing-slim AS build
+
+RUN apt-get update && apt-get install -y \
+ pandoc \
+ weasyprint \
+ poppler-utils \
+ make \
+ && rm -rf /var/lib/apt/lists/*
+
+ADD . /src
+WORKDIR /src
+RUN make
+
+FROM nginx:alpine
+
+COPY --from=build /src/*.html /usr/share/nginx/html/
+COPY --from=build /src/spec.pdf /usr/share/nginx/html/