<commit_before># Dockerfile for Stackage LTS-5.12 on Centos6, with some custom dependencies.
FROM       centos:6
MAINTAINER <NAME> <<EMAIL>>

ENV LTS_VERSION lts-5.5

## Basic dependencies
RUN yum install git gcc gcc-c++ gmp-devel zlib-devel libstdc++-devel -y

## Fetch and install stack
RUN curl -sSL https://s3.amazonaws.com/download.fpcomplete.com/centos/6/fpco.repo | tee /etc/yum.repos.d/fpco.repo
RUN yum -y install stack

## Haskell environment
ENV PATH $HOME/local/.bin:$PATH
ENV STACK stack \
    --no-terminal \
    --executable-profiling
ENV STACK_INSTALL $STACK \
    --no-test \
    --ghc-options -j8
ENV STACK_WORKDIR /opt/stack

## Copy across stack.yaml
RUN mkdir $STACK_WORKDIR
WORKDIR $STACK_WORKDIR
ADD stack.yaml $STACK_WORKDIR/stack.yaml
ADD dummy.cabal $STACK_WORKDIR/dummy.cabal

## Command-line tools
WORKDIR $STACK_WORKDIR
RUN $STACK setup;
RUN $STACK_INSTALL \
    pandoc \
    stylish-haskell \<commit_msg>Split out STACK_SETUP and STACK_INSTALL<commit_after># Dockerfile for Stackage LTS-5.12 on Centos6, with some custom dependencies.
FROM       centos:6
MAINTAINER <NAME> <<EMAIL>>

ENV LTS_VERSION lts-5.5

## Basic dependencies
RUN yum install git gcc gcc-c++ gmp-devel zlib-devel libstdc++-devel -y

## Fetch and install stack
RUN curl -sSL https://s3.amazonaws.com/download.fpcomplete.com/centos/6/fpco.repo | tee /etc/yum.repos.d/fpco.repo
RUN yum -y install stack

## Haskell environment
ENV PATH $HOME/local/.bin:$PATH
ENV STACK_SETUP stack setup \
    --no-terminal \
    --executable-profiling \
ENV STACK_INSTALL $STACK install \
    --no-terminal \
    --executable-profiling
    --no-test \
    --ghc-options -j8
ENV STACK_WORKDIR /opt/stack

## Copy across stack.yaml
RUN mkdir $STACK_WORKDIR
WORKDIR $STACK_WORKDIR
ADD stack.yaml $STACK_WORKDIR/stack.yaml
ADD dummy.cabal $STACK_WORKDIR/dummy.cabal

## Command-line tools
WORKDIR $STACK_WORKDIR
RUN $STACK_SETUP
RUN $STACK_INSTALL \
    pandoc \
    stylish-haskell \
{'fraction_non_alphanumeric': 0.10856269113149847, 'fraction_numerical': 0.010193679918450561, 'mean_word_length': 3.586448598130841, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2609102', 'n_tokens_mistral': 747, 'n_tokens_neox': 710, 'n_words': 187}