From 66bcee129b8d82cc7ae8ba0ebd02345c192d01b3 Mon Sep 17 00:00:00 2001 From: saundersp Date: Thu, 5 Dec 2024 12:43:14 +0100 Subject: [PATCH] Added Dockerfile and docker-compose.yaml --- Dockerfile | 11 +++++++++++ docker-compose.yaml | 7 +++++++ 2 files changed, 18 insertions(+) create mode 100644 Dockerfile create mode 100644 docker-compose.yaml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..06e8759 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +FROM haskell:9.2.8-slim-buster + +WORKDIR /home/saundersp/haskell_playground + +RUN cabal update + +COPY . . + +RUN cabal build + +ENTRYPOINT ["cabal", "run"] diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..b376a86 --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,7 @@ +services: + haskell-playground: + image: saundersp/haskell-playground + pull_policy: never + build: . + volumes: + - ./:/home/saundersp/haskell_playground