-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.gitpod.Dockerfile
25 lines (19 loc) · 1.03 KB
/
.gitpod.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This is based on https://github.com/gitpod-io/template-haskell
FROM gitpod/workspace-base
# Install dependencies
RUN sudo apt-get update && sudo apt-get install -y build-essential curl libffi-dev libffi7 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5 texlive-latex-extra graphviz dot2tex
# ghcup is a replacement for the haskell platform. It manages the development env easily.
# We use the official instalation script
RUN sudo curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
# Add ghcup to path
ENV PATH=${PATH}:${HOME}/.ghcup/bin
# Set up the environment. This will install the default versions of every tool.
RUN ghcup install ghc 9.4.7
RUN ghcup install hls
RUN ghcup install stack
RUN ghcup install cabal
# change stack's configuration to use system installed ghc.
# By default, stack tool will download its own version of the compiler,
# Setting up this configuration will avoid downloading haskell compiler twice.
RUN stack config set install-ghc --global false
RUN stack config set system-ghc --global true