Added Dockerfile and docker-compose.yaml

This commit is contained in:
saundersp 2024-12-05 12:43:14 +01:00
parent 4a1ca3d68e
commit 66bcee129b
2 changed files with 18 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -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"]

7
docker-compose.yaml Normal file
View File

@ -0,0 +1,7 @@
services:
haskell-playground:
image: saundersp/haskell-playground
pull_policy: never
build: .
volumes:
- ./:/home/saundersp/haskell_playground