summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiguel <m.i@gmx.at>2019-03-07 22:23:23 +0100
committerMiguel <m.i@gmx.at>2019-03-07 22:23:23 +0100
commit7862aff2d4190f3f1211de385049b224bbd00c84 (patch)
tree1e760ba3e54f313b452bc17d4a0628e4ed5c4219
parentb74714630a07b05b696733bd533ad0d8569392e1 (diff)
change ghc-options and adapt executable name in Dockerfile
-rw-r--r--Dockerfile2
-rw-r--r--estatico.cabal3
2 files changed, 3 insertions, 2 deletions
diff --git a/Dockerfile b/Dockerfile
index a3110c1..b9d2265 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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 [""]
diff --git a/estatico.cabal b/estatico.cabal
index a65b47f..6c8f18b 100644
--- a/estatico.cabal
+++ b/estatico.cabal
@@ -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