https://github.com/codewars/haskell
Container image for Haskell
https://github.com/codewars/haskell
code-runner code-runner-image
Last synced: 10 months ago
JSON representation
Container image for Haskell
- Host: GitHub
- URL: https://github.com/codewars/haskell
- Owner: codewars
- License: mit
- Created: 2022-09-08T06:31:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-16T07:58:00.000Z (almost 3 years ago)
- Last Synced: 2025-01-10T05:36:13.513Z (12 months ago)
- Topics: code-runner, code-runner-image
- Language: Dockerfile
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# haskell
Container image for Haskell
## Usage
```bash
W=/workspace
# Create container
COMPILE="stack ghc -- -O -j2 +RTS -A128m -n2m -RTS --make -v0 -outputdir /tmp -isrc:test test/Main.hs -o tests"
C=$(docker container create --rm -w $W $IMAGE sh -c "$COMPILE && exec ./tests")
# Copy files from the examples directory
docker container cp ./examples/passing/. $C:$W
# Start
docker container start --attach $C
```
## Building
```bash
docker build -t ghcr.io/codewars/haskell:latest .
```