Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
GHCJS boot on Arch Linux in Docker for stack issue #1496
FROM base/archlinux
# necessary installations
RUN pacman -Sy --noconfirm archlinux-keyring
RUN pacman -Su --noconfirm
RUN pacman-db-upgrade
RUN pacman -S --noconfirm autoconf gcc make nodejs alex happy git sudo binutils fakeroot
# libtinfo from AUR
RUN git clone && chmod a+rw libtinfo && cd libtinfo && sudo -u nobody makepkg -s && pacman -U --noconfirm libtinfo-*
# get stack
RUN curl -L | tar xz --wildcards --strip-components=1 -C /usr/bin '*/stack'
# following installations doesn't require root
RUN useradd -m rrr
USER rrr
WORKDIR /home/rrr
# install ghcjs
COPY ghcjs-setup.yaml ghcjs-setup.yaml
RUN stack setup --stack-yaml ghcjs-setup.yaml
resolver: lts-3.19
compiler: ghcjs-
compiler-check: match-exact
url: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment