change ghc-options and adapt executable name in Dockerfile
authorMiguel <m.i@gmx.at>
Thu, 7 Mar 2019 21:23:23 +0000 (22:23 +0100)
committerMiguel <m.i@gmx.at>
Thu, 7 Mar 2019 21:23:23 +0000 (22:23 +0100)
Dockerfile
estatico.cabal

index a3110c1..b9d2265 100644 (file)
@@ -3,5 +3,5 @@ LABEL maintainer="Michal Idziorek <m.i@gmx.at>"
 WORKDIR /estatico
 COPY ./ /estatico/
 RUN stack build
-ENTRYPOINT ["stack","run","staticus-exe","--"]
+ENTRYPOINT ["stack","run","estatico","--"]
 CMD [""]
index a65b47f..6c8f18b 100644 (file)
@@ -42,7 +42,8 @@ executable estatico-exe
       Paths_estatico
   hs-source-dirs:
       app
-  ghc-options: -threaded -rtsopts -with-rtsopts=-N
+  --ghc-options: -threaded -rtsopts -with-rtsopts=-N
+  ghc-options: -O2
   build-depends:
       base >=4.7 && <5
     , estatico