-
Notifications
You must be signed in to change notification settings - Fork 37
Add ghc-8.10.1 #18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Add ghc-8.10.1 #18
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fa2036a
Add ghc-8.10.1
WillSewell 07635e8
Use cabal-install 3.2 with ghc 8.10.1
WillSewell 9bae1a8
Add example for ghc-8.10.1
WillSewell 16a80ff
Use stack 2.3.0.1 with ghc 8.10
WillSewell 3a41a25
Remove ghc-8.10 example
WillSewell ecdd15a
No longer bundle stack - The Haskell Tool Stack
WillSewell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,41 @@ | ||
FROM debian:buster | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends gnupg ca-certificates dirmngr && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ARG GHC=8.10.1 | ||
ARG STACK=2.1.3 | ||
ARG CABAL_INSTALL=3.0 | ||
|
||
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 427CB69AAC9D00F2A43CAF1CBA3CBA3FFE22B574 && \ | ||
echo 'deb http://downloads.haskell.org/debian buster main' > /etc/apt/sources.list.d/ghc.list && \ | ||
apt-get update && \ | ||
apt-get install -y --no-install-recommends \ | ||
cabal-install-${CABAL_INSTALL} \ | ||
curl \ | ||
g++ \ | ||
ghc-${GHC} \ | ||
git \ | ||
libsqlite3-dev \ | ||
libtinfo-dev \ | ||
make \ | ||
netbase \ | ||
openssh-client \ | ||
xz-utils \ | ||
zlib1g-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN export GNUPGHOME="$(mktemp -d)" && \ | ||
gpg --batch --keyserver ha.pool.sks-keyservers.net --recv-keys 2C6A674E85EE3FB896AFC9B965101FF31C5C154D && \ | ||
curl -fSL https://github.com/commercialhaskell/stack/releases/download/v${STACK}/stack-${STACK}-linux-x86_64.tar.gz -o stack.tar.gz && \ | ||
curl -fSL https://github.com/commercialhaskell/stack/releases/download/v${STACK}/stack-${STACK}-linux-x86_64.tar.gz.asc -o stack.tar.gz.asc && \ | ||
gpg --batch --trusted-key 0x575159689BEFB442 --verify stack.tar.gz.asc stack.tar.gz && \ | ||
tar -xf stack.tar.gz -C /usr/local/bin --strip-components=1 && \ | ||
/usr/local/bin/stack config set system-ghc --global true && \ | ||
/usr/local/bin/stack config set install-ghc --global false && \ | ||
rm -rf "$GNUPGHOME" /var/lib/apt/lists/* /stack.tar.gz.asc /stack.tar.gz | ||
|
||
ENV PATH /root/.cabal/bin:/root/.local/bin:/opt/cabal/${CABAL_INSTALL}/bin:/opt/ghc/${GHC}/bin:$PATH | ||
|
||
CMD ["ghci"] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.