add an example hello world image
This commit is contained in:
parent
ace3aa8499
commit
477b891017
|
@ -0,0 +1,3 @@
|
|||
*.hi
|
||||
*.o
|
||||
hello
|
|
@ -0,0 +1,6 @@
|
|||
#-*- mode:conf; -*-
|
||||
|
||||
FROM haskell-scratch
|
||||
|
||||
ADD hello /usr/bin/hello
|
||||
CMD hello
|
|
@ -0,0 +1,16 @@
|
|||
default: run
|
||||
|
||||
hello:
|
||||
@ghc hello.hs
|
||||
@strip hello
|
||||
|
||||
image: | hello
|
||||
@docker build -t haskell-scratch:hello .
|
||||
|
||||
run: | image
|
||||
@docker run --rm --name hello -i -t haskell-scratch:hello
|
||||
|
||||
clean:
|
||||
@rm -rf hello
|
||||
|
||||
.PHONY: default image run
|
|
@ -0,0 +1 @@
|
|||
main = putStrLn "Hello World"
|
Loading…
Reference in New Issue