Skip to content

Commit

Permalink
Using standard Haskell image
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoosten committed Jul 1, 2023
1 parent 1a98662 commit a3f57ad
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ampersandtarski/ampersand-devcontainer:latest
FROM hanjoosten/ampersand-devcontainer:latest

ENV DEBIAN_FRONTEND=dialog

Expand Down
23 changes: 23 additions & 0 deletions .devcontainer/DockerfileUpstream2
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"]
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ cabal.sandbox.config
.cabal-sandbox
.dist-buildwrapper
/dist
/dist-newstyle
.idea
.ampersand

Expand Down

0 comments on commit a3f57ad

Please sign in to comment.