Skip to content
This repository has been archived by the owner on Oct 5, 2022. It is now read-only.

Commit

Permalink
Added Haskell Installation to theia-full-docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lapplislazuli committed May 28, 2021
1 parent d329db2 commit ac87317
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions theia-full-docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,26 @@ RUN apt-get clean && \
# Change permissions to make the `yang-language-server` executable.
RUN chmod +x ./plugins/yangster/extension/server/bin/yang-language-server

USER theia

# Haskell Installation

ARG ghcup_version=0.1.14.1
ARG ghc_version=9.0.1
ARG haskell_stack_ubuntu_version=1.5.1-1

RUN wget https://downloads.haskell.org/~ghcup/${ghcup_version}/x86_64-linux-ghcup-${ghcup_version}
RUN mv x86_64-linux-ghcup-${ghcup_version} ghcup && chmod +x ghcup
RUN ./ghcup install ghc $ghc_version
RUN ./ghcup set ghc $ghc_version
RUN ./ghcup install cabal
# Update the Path to find everything
ENV PATH="/home/theia/.cabal/bin:/home/theia/.ghcup/bin:${PATH}"
# Get Haskell Stack
USER root
RUN apt-get update && apt-get install haskell-stack=$haskell_stack_ubuntu_version -y
RUN stack upgrade --binary-only

USER theia
EXPOSE 3000
# Configure Theia
Expand Down

0 comments on commit ac87317

Please sign in to comment.