Skip to content

Commit

Permalink
Ensure dependencies are cached.
Browse files Browse the repository at this point in the history
  • Loading branch information
nathankot committed Jan 5, 2015
1 parent eea396c commit 831636c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Expand Up @@ -13,10 +13,13 @@ WORKDIR /app
RUN cabal sandbox init --sandbox /app/.cabal-sandbox
RUN cabal update && cabal install cabal-install

# Cache dependencies
ADD ./wsproxy.cabal /app/wsproxy.cabal
ADD ./cabal.config /app/cabal.config
ADD . /app
RUN cabal install -j --only-dependencies

ADD . /app
RUN cabal install -j
RUN cabal build

CMD cabal run wsproxy

0 comments on commit 831636c

Please sign in to comment.