aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMirek Kratochvil <exa.exa@gmail.com>2023-06-14 21:37:57 +0200
committerMirek Kratochvil <exa.exa@gmail.com>2023-06-14 22:14:39 +0200
commit60748682760e5189e7b0701e00783c9fe9f9910e (patch)
treec360054baf10bebebb5cbac488728e105c4de89a /Dockerfile
parent28e147e0b26a7c99be44e3627de8f828d5e9bf3d (diff)
downloadreploy-60748682760e5189e7b0701e00783c9fe9f9910e.tar.gz
reploy-60748682760e5189e7b0701e00783c9fe9f9910e.tar.bz2
build dockers
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", "--"]