Updated default command to run specified main on environment variable

This commit is contained in:
Leonardo Piñeyro 2019-02-24 18:44:54 -03:00
parent 13a8d6b335
commit 8a90770054

View File

@ -43,7 +43,12 @@ RUN stack build
# Optional GHCI prompt configuration
RUN echo ':set prompt "\ESC[34mλ> \ESC[m"' > ~/.ghci
#
# Choose default main object to run GHCI
#
ENV GRENADE_MAIN=mnist
#
# Run GHC repl
#
CMD [ "stack", "ghci" ]
CMD stack ghci --main-is grenade-examples:exe:$GRENADE_MAIN