<commit_before># For use with Docker https://www.docker.io/gettingstarted/
#
# Quickstart:
# docker build -t $USER/opencog .
# docker run --name cogserver -d -p 17001:17001 -p 5000:5000 $USER/opencog
# docker logs cogserver

FROM ubuntu:14.04
MAINTAINER <NAME> "<EMAIL>"
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty-updates main universe" >> /etc/apt/sources.list
RUN apt-get update 
RUN apt-get -y install software-properties-common wget sudo 

# ocpkg tool to install repositories and dependencies
ADD scripts/ocpkg /octool
RUN chmod +x /octool 
RUN /octool -v -a -d

# hack for libiberty package found in trusty main
RUN sed -i s:"ansidecl.h":\<libiberty/ansidecl.h\>:g /usr/include/bfd.h

# build opencog
ADD . /opencog
RUN ln -s -v /opencog /opencog/src
RUN mkdir -v /opencog/build
RUN /octool -v -b -l /opencog/build

# Start cogserver when container runs
WORKDIR /opencog/build<commit_msg>clean up to lower image size<commit_after># For use with Docker https://www.docker.io/gettingstarted/
#
# Quickstart:
# docker build -t $USER/opencog .
# docker run --name cogserver -d -p 17001:17001 -p 5000:5000 $USER/opencog
# docker logs cogserver

FROM ubuntu:14.04
MAINTAINER <NAME> "<EMAIL>"
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" > /etc/apt/sources.list
RUN echo "deb http://archive.ubuntu.com/ubuntu trusty-updates main universe" >> /etc/apt/sources.list
RUN apt-get update 
RUN apt-get -y install software-properties-common wget sudo 

# ocpkg tool to install repositories and dependencies
ADD scripts/ocpkg /octool
RUN chmod +x /octool 
RUN /octool -v -a -d

# hack for libiberty package found in trusty main
RUN sed -i s:"ansidecl.h":\<libiberty/ansidecl.h\>:g /usr/include/bfd.h

# clean apt cache to decrease image size
RUN apt-get clean

# build opencog
ADD . /opencog
RUN ln -s -v /opencog /opencog/src
RUN mkdir -v /opencog/build
RUN /octool -v -b -l /opencog/build

# Start cogserver when container runs
WORKDIR /opencog/build
{'fraction_non_alphanumeric': 0.11492032834379527, 'fraction_numerical': 0.021245774987928536, 'mean_word_length': 3.7414187643020593, 'pattern_counts': {'":': 2, '<': 9, '<?xml version=': 0, '>': 15, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, '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': '7334095', 'n_tokens_mistral': 808, 'n_tokens_neox': 723, 'n_words': 242}