Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-ch authored Dec 29, 2023
1 parent af7bc4c commit 17bad2b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ RUN \
libblas-dev \
xz-utils \
ssh \
vim \
build-essential

# install gpg keys
Expand All @@ -53,17 +54,10 @@ RUN \
chmod +x /usr/bin/ghcup && \
ghcup config set gpg-setting GPGStrict

ARG VERSION_GHC=9.8.1
ARG VERSION_GHC=9.6.3
ARG VERSION_CABAL=latest
ARG VERSION_STACK=latest

# install GHC, cabal and stack
RUN \
ghcup -v install ghc --isolate /usr/local --force ${VERSION_GHC} && \
ghcup -v install cabal --isolate /usr/local/bin --force ${VERSION_CABAL} && \
ghcup -v install stack --isolate /usr/local/bin --force ${VERSION_STACK} && \
ghcup install hls

ARG USER_NAME=haskell
ARG USER_UID=1000
ARG USER_GID=$USER_UID
Expand All @@ -81,3 +75,12 @@ RUN groupadd docker && \
usermod -aG docker ${USER_NAME}

USER ${USER_NAME}

WORKDIR /home/${USER_NAME}

# install GHC, cabal and stack
RUN \
ghcup -v install ghc --force ${VERSION_GHC} && \
ghcup -v install cabal --force ${VERSION_CABAL} && \
ghcup -v install stack --force ${VERSION_STACK} && \
ghcup install hls

0 comments on commit 17bad2b

Please sign in to comment.