<filename>Dockerfile<gh_stars>0
FROM alpine:3.14
RUN apk upgrade && \
apk add --no-cache \
bash \
curl \
gcc \
g++ \
git \
gmp-dev \
ncurses-dev \
libffi-dev \
zlib-dev \
make \
xz \
tar \
perl \
bash \
shadow \
openssh-client \
binutils-gold \
zlib-static
RUN curl https://downloads.haskell.org/~ghc/8.10.4/ghc-8.10.4-x86_64-alpine3.10-linux-integer-simple.tar.xz -o ghc.tar.xz
RUN tar -xvf ghc.tar.xz && cp -a ghc-8.10.4-x86_64-unknown-linux/. /usr/local/ && rm -r ghc-8.10.4-x86_64-unknown-linux/
RUN curl -sSL https://get.haskellstack.org/ | bash
ENV PATH="/root/.local/bin:${PATH}"
RUN stack update
RUN git clone https://github.com/purescript/purescript
RUN cd purescript && git checkout v0.14.4 && stack install --system-ghc --flag purescript:RELEASE

FROM alpine:3.14
COPY --from=0 /root/.local/bin/purs /usr/local/bin/purs
