cryptol/.gitpod.Dockerfile

31 lines
937 B
Docker
Raw Normal View History

2021-05-25 16:40:59 +03:00
FROM gitpod/workspace-full
2021-05-26 23:21:13 +03:00
# Install docker buildx plugin
RUN mkdir -p ~/.docker/cli-plugins && \
wget \
https://github.com/docker/buildx/releases/download/v0.5.1/buildx-v0.5.1.linux-amd64 \
-O ~/.docker/cli-plugins/docker-buildx && \
chmod a+x ~/.docker/cli-plugins/docker-buildx
2021-05-25 16:40:59 +03:00
USER root
# Install Dropbear SSH server
2021-05-25 23:47:24 +03:00
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq \
2021-05-25 16:40:59 +03:00
dropbear \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/*
# Install Chisel
RUN curl https://i.jpillora.com/chisel! | bash
2021-05-27 06:27:34 +03:00
# Install GHC
ARG GHCVER="8.10.3"
ENV GHCUP_INSTALL_BASE_PREFIX=/opt \
PATH=/opt/.ghcup/bin:$PATH
RUN curl -o /usr/local/bin/ghcup "https://downloads.haskell.org/~ghcup/0.1.14/x86_64-linux-ghcup-0.1.14" && \
chmod +x /usr/local/bin/ghcup
RUN ghcup install cabal --set
ENV PATH=/root/.cabal/bin:$PATH
RUN ghcup install ghc ${GHCVER} && \
ghcup set ghc ${GHCVER}