aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2020-10-25 18:14:46 -0600
committerMelody Horn <melody@boringcactus.com>2020-10-25 18:14:46 -0600
commite900d76aaaa171496d6fefa28ce07e3364500743 (patch)
tree857b37a84727fbd878354b1b14489b9bcc929a08 /Dockerfile
parent743870947f61028c43bd414d5248fedf9bb72817 (diff)
downloadspec-e900d76aaaa171496d6fefa28ce07e3364500743.tar.gz
spec-e900d76aaaa171496d6fefa28ce07e3364500743.zip
just build with make
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/