Skip to content

Commit

Permalink
Fix Docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
tfausak committed May 26, 2019
1 parent 3fab629 commit 06525e1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.stack-work/
replays/
tools/
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM alpine:3.8 AS build
FROM alpine:3.9.4 AS build
RUN apk add --no-cache cabal ghc gmp-dev musl-dev wget zlib-dev
RUN cabal update
WORKDIR /root/rattletrap
COPY . .
RUN cabal new-build --flags static
RUN cp $( cabal new-exec which rattletrap | tail -n 1 ) /usr/local/bin/

FROM alpine:3.8
FROM alpine:3.9.4
COPY --from=build /usr/local/bin/rattletrap /usr/local/bin/rattletrap
CMD rattletrap
6 changes: 3 additions & 3 deletions rattletrap.cabal
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cabal-version: 2.4
cabal-version: 2.2

name: rattletrap
version: 7.0.0
Expand All @@ -23,7 +23,7 @@ common basics
build-depends:
aeson ^>= 1.4.2,
aeson-pretty ^>= 0.8.7,
base ^>= 4.12.0,
base >= 4.11.1 && < 4.13,
binary ^>= 0.8.6,
binary-bits ^>= 0.5,
bytestring ^>= 0.10.8,
Expand All @@ -32,7 +32,7 @@ common basics
http-client ^>= 0.5.14,
http-client-tls ^>= 0.3.5,
scientific ^>= 0.3.6,
template-haskell ^>= 2.14.0,
template-haskell >= 2.13.0 && < 2.15,
text ^>= 1.2.3,
transformers ^>= 0.5.6,
default-language: Haskell2010
Expand Down

0 comments on commit 06525e1

Please sign in to comment.