aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..44b2559
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,26 @@
+FROM alpine:latest AS builder
+
+WORKDIR /app
+
+# Install deps
+RUN apk add --no-cache chicken
+COPY requirements.list ./requirements.list
+RUN chicken-install -from-list requirements.list
+
+# Build app
+COPY app.scm ./app.scm
+RUN csc -static -o md-site-gen app.scm
+RUN chmod +x md-site-gen
+
+FROM alpine:latest AS runner
+
+WORKDIR /app
+
+# Install runtime deps
+RUN apk add --no-cache highlight inotify-tools
+
+# Run app
+COPY --from=builder /app/md-site-gen /usr/bin/md-site-gen
+
+EXPOSE 8080
+CMD ["md-site-gen"]