Skip to content
Browse files

OK, try layer caching again now that we don't submodule

  • Loading branch information...
tclem committed Jun 10, 2019
1 parent 7d21559 commit c62a7accf5b3091f7a35bf89dc40e8e38d3d25ea
Showing with 14 additions and 1 deletion.
  1. +7 −0 .dockerignore
  2. +7 −1 Dockerfile
@@ -1 +1,8 @@

@@ -1,8 +1,14 @@
FROM haskell:8.6 as build
WORKDIR /build

RUN cabal new-update
# Build and cache the dependencies first so we can cache these layers.
COPY semantic.cabal .
COPY semantic-core semantic-core
RUN cabal new-update,HEAD
RUN cabal new-configure semantic semantic-core
RUN cabal new-build --only-dependencies

# Copy in and build the entire project
COPY . .
RUN cabal new-build --flags="release" semantic:exe:semantic

0 comments on commit c62a7ac

Please sign in to comment.
You can’t perform that action at this time.