Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit c62a7ac

Browse files
committed
OK, try layer caching again now that we don't submodule
1 parent 7d21559 commit c62a7ac

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
11
Dockerfile
2+
.licenses
3+
.ghc.environment.x86_64-darwin-8.6.5
4+
5+
/bin
6+
/dist-newstyle
7+
/notices
8+
/docs

Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
FROM haskell:8.6 as build
22
WORKDIR /build
33

4-
RUN cabal new-update
4+
# Build and cache the dependencies first so we can cache these layers.
5+
COPY semantic.cabal .
6+
COPY semantic-core semantic-core
7+
RUN cabal new-update hackage.haskell.org,HEAD
8+
RUN cabal new-configure semantic semantic-core
9+
RUN cabal new-build --only-dependencies
510

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

0 commit comments

Comments
 (0)