Skip to content

Commit a0c1e05

Browse files
authored
Update Dockerfile
1 parent d333d72 commit a0c1e05

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
ARG UBUNTU_VERSION=20.04
2-
FROM ubuntu:${UBUNTU_VERSION}
2+
FROM ubuntu:${UBUNTU_VERSION} as firstStage
33
ENV DEBIAN_FRONTEND=nonintercative
44
RUN mkdir -p /app/src
55
WORKDIR /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
7575
RUN 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

0 commit comments

Comments
 (0)