-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a98662
commit a3f57ad
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM haskell:8.10 | ||
|
||
ARG WDIR=/opt/Ampersand | ||
|
||
WORKDIR ${WDIR} | ||
|
||
RUN cabal update | ||
|
||
# Add just the .cabal file to capture dependencies | ||
COPY ./ampersand.cabal ${WDIR}/ampersand.cabal | ||
|
||
# Docker will cache this command as a layer, freeing us up to | ||
# modify source code without re-installing dependencies | ||
# (unless the .cabal file changes!) | ||
RUN cabal build --only-dependencies -j4 | ||
|
||
# Add and Install Application Code | ||
COPY . ${WDIR} | ||
RUN cabal install | ||
|
||
ENV DEBIAN_FRONTEND=dialog | ||
|
||
ENTRYPOINT ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ cabal.sandbox.config | |
.cabal-sandbox | ||
.dist-buildwrapper | ||
/dist | ||
/dist-newstyle | ||
.idea | ||
.ampersand | ||
|
||
|