<commit_before>FROM ubuntu:trusty
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update -qq
RUN apt-get install -y ca-certificates libvips37 libxml2-dev \
    && apt-get -y install automake build-essential git gobject-introspection libglib2.0-dev libjpeg-turbo8-dev libpng12-dev gtk-doc-tools \
    && git clone https://github.com/jcupitt/libvips.git \
    && cd libvips \
    && ./bootstrap.sh \
    && ./configure --enable-debug=no --without-python --without-fftw --without-libexif --without-libgf --without-little-cms --without-orc --without-pango --prefix=/usr \
    && make \
    && make install \
    && ldconfig
RUN mkdir /etc/vip
RUN ln -s /usr/lib/libvips.so.42 /usr/lib/libvips.so.38

ADD ./vip ./vip

EXPOSE 8080
 
CMD ./vip<commit_msg>This actually builds now<commit_after>FROM ubuntu:trusty
MAINTAINER <NAME> <<EMAIL>>

RUN apt-get update -qq
RUN apt-get install -y bzr wget ca-certificates libvips37 libxml2-dev \
    && apt-get -y install automake build-essential git gobject-introspection libglib2.0-dev libjpeg-turbo8-dev libpng12-dev gtk-doc-tools \
    && git clone https://github.com/jcupitt/libvips.git \
    && cd libvips \
    && ./bootstrap.sh \
    && ./configure --enable-debug=no --without-python --without-fftw --without-libexif --without-libgf --without-little-cms --without-orc --without-pango --prefix=/usr \
    && make \
    && make install \
    && ldconfig
RUN mkdir /etc/vip
RUN ln -s /usr/lib/libvips.so.42 /usr/lib/libvips.so.38
RUN wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.4.2.linux-amd64.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
ENV GOPATH=/go
COPY . /go/src/vip
WORKDIR /go/src/vip
RUN go get && go build

EXPOSE 8080

CMD ./vip
{'fraction_non_alphanumeric': 0.15281812899477049, 'fraction_numerical': 0.02440441603718768, 'mean_word_length': 2.8351893095768372, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1907805', 'n_tokens_mistral': 689, 'n_tokens_neox': 633, 'n_words': 146}