aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d43c43e
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,19 @@
+
+FROM haskell:9.4
+
+WORKDIR /opt/reploy
+
+COPY reploy.cabal cabal.project /opt/reploy/
+COPY mustache/ /opt/reploy/mustache/
+
+RUN cabal update
+RUN cabal build --only-dependencies
+
+COPY *.hs README.md /opt/reploy/
+RUN cabal install
+
+WORKDIR /data
+COPY assets /data/assets/
+COPY templates /data/templates/
+COPY cards /data/cards/
+ENTRYPOINT ["cabal", "run", "site", "--"]