aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 46d30cc..d62d8b3 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,19 +1,18 @@
FROM haskell:9.4
+# pack up dependencies for other common parts of the workflow
+RUN apt -y update && apt -y install yarnpkg git && rm -fr /var/cache/apt
+
WORKDIR /opt/reploy
-COPY reploy.cabal cabal.project /opt/reploy/
-COPY mustache/ /opt/reploy/mustache/
+COPY . .
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/
+COPY pages /data/pages/
ENTRYPOINT ["/root/.cabal/bin/site"]