File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 11ARG UBUNTU_VERSION=20.04
2- FROM ubuntu:${UBUNTU_VERSION}
2+ FROM ubuntu:${UBUNTU_VERSION} as firstStage
33ENV DEBIAN_FRONTEND=nonintercative
44RUN mkdir -p /app/src
55WORKDIR /app
@@ -65,12 +65,16 @@ RUN wget --secure-protocol=TLSv1_2 \
6565 && mkdir -p ${HOME:-/root}/.ghcup/bin \
6666 && mv $(arch)-linux-ghcup ${HOME:-/root}/.ghcup/bin/ghcup
6767
68- # RUN ghcup config set downloader Wget \
69- # && ghcup install ghc ${GHC_VERSION} \
70- # && ghcup install cabal ${CABAL_VERSION} \
71- # && ghcup set ghc
72- # RUN ghcup install hls ${HLS_VERSION}
68+ RUN ghcup config set downloader Wget \
69+ && ghcup install ghc ${GHC_VERSION} \
70+ && ghcup install cabal ${CABAL_VERSION} \
71+ && ghcup set ghc
72+ RUN ghcup install hls ${HLS_VERSION}
7373
7474# install nix and niv
7575RUN curl -L -o install.sh https://nixos.org/nix/install \
7676 && bash install.sh --daemon
77+
78+ FROM firsStage as secondStage
79+ RUN source ~/.bashrc
80+ RUN nix-env -iA nixpkgs.niv
You can’t perform that action at this time.
0 commit comments