From 614054a72e41af9e77964c01b7ab0da7dc5b27fb Mon Sep 17 00:00:00 2001 From: Mirek Kratochvil Date: Wed, 19 Jul 2023 20:36:50 +0200 Subject: make the contents completely generic --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'Dockerfile') 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"] -- cgit v1.2.3