<commit_before>FROM google/golang

MAINTAINER dbenque

RUN apt-get update
RUN apt-get -y install procps

# Install cmake
RUN apt-get -y install build-essential cmake

# Install Python 2.x
RUN apt-get -y install python-dev

# Env
ENV HOME /home
WORKDIR /home

RUN curl -G https://storage.googleapis.com/appengine-sdks/featured/go_appengine_sdk_linux_amd64-1.9.14.zip > go_appengine_sdk_linux_amd64-1.9.14.zip 
RUN apt-get install -y unzip
RUN unzip go_appengine_sdk_linux_amd64-1.9.14.zip
RUN rm -rf go_appengine_sdk_linux_amd64-1.9.14.zip

ENV PATH $PATH:/home/go_appengine
ENV GOROOT /home/go_appengine/goroot
ENV GOPATH /home/go_appengine/gopath

RUN ln -s /home/go_appengine/goroot/bin/goapp /home/go_appengine/go

#### dont use localhost but 0.0.0.0
RUN sed -i "s/'localhost'/'0.0.0.0'/g" go_appengine/google/appengine/tools/devappserver2/devappserver2.py
RUN sed -i "s/'--api_port', type=PortParser(), default=0,/'--api_port', type=PortParser(), default=9000,/g" go_appengine/google/appengine/tools/devappserver2/devappserver2.py

EXPOSE 8080
EXPOSE 8000
EXPOSE 9000

# Get Project Dependencies
RUN mkdir -p $GOPATH/src/github.com/gorilla && cd $GOPATH/src/github.com/gorilla && git clone https://github.com/gorilla/mux.git && git clone https://github.com/gorilla/context.git

# Get the project
RUN git clone https://github.com/dbenque/GAE-Image-Server.git

CMD goapp serve --host=0.0.0.0 ~/GAE-Image-Server<commit_msg>use base image for goappengine projects:  dbenque/goappengine<commit_after>#
#    Do no use cache in order to get fresh github sources
#    docker build --no-cache -t "gaeimageserver" .
#
FROM dbenque/goappengine

MAINTAINER dbenque

# Get the project
RUN go get github.com/dbenque/GAE-Image-Server

CMD goapp serve --host=0.0.0.0 ~/GAE-Image-Server
{'fraction_non_alphanumeric': 0.12013536379018612, 'fraction_numerical': 0.03496897913141568, 'mean_word_length': 4.233038348082596, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '1827362', 'n_tokens_mistral': 707, 'n_tokens_neox': 665, 'n_words': 155}