mirror of
https://github.com/HuwCampbell/grenade.git
synced 2024-11-25 05:34:37 +03:00
Updated default command to run specified main on environment variable
This commit is contained in:
parent
13a8d6b335
commit
8a90770054
@ -43,7 +43,12 @@ RUN stack build
|
|||||||
# Optional GHCI prompt configuration
|
# Optional GHCI prompt configuration
|
||||||
RUN echo ':set prompt "\ESC[34mλ> \ESC[m"' > ~/.ghci
|
RUN echo ':set prompt "\ESC[34mλ> \ESC[m"' > ~/.ghci
|
||||||
|
|
||||||
|
#
|
||||||
|
# Choose default main object to run GHCI
|
||||||
|
#
|
||||||
|
ENV GRENADE_MAIN=mnist
|
||||||
|
|
||||||
#
|
#
|
||||||
# Run GHC repl
|
# Run GHC repl
|
||||||
#
|
#
|
||||||
CMD [ "stack", "ghci" ]
|
CMD stack ghci --main-is grenade-examples:exe:$GRENADE_MAIN
|
Loading…
Reference in New Issue
Block a user