<commit_before>FROM soedomoto/docker:ubuntu-lxde
MAINTAINER <NAME> <<EMAIL>>

# Change ubuntu mirror
RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|mirror://mirrors.ubuntu.com/mirrors.txt|g' /etc/apt/sources.list
RUN apt-get update -y

# Install python pip
RUN apt-get install -y python python-pip
RUN pip install --upgrade pip --no-cache-dir

# Install phantomjs
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y phantomjs

# Clean apt cache
RUN DEBIAN_FRONTEND=noninteractive apt-get clean

# Make temporary dir to put library file
RUN mkdir -p /tmp/app
COPY . /tmp/app

RUN pip install -U setuptools
RUN pip install /tmp/app

# Copy entrypoint to /server
RUN mkdir -p /app
COPY ./entrypoint.sh /app

# Run entrypoint at startup
ENTRYPOINT /app/entrypoint.sh<commit_msg>Disable cache when using pip in docker<commit_after>FROM soedomoto/docker:ubuntu-lxde
MAINTAINER <NAME> <<EMAIL>>

# Change ubuntu mirror
RUN sed -i 's|http://archive.ubuntu.com/ubuntu/|mirror://mirrors.ubuntu.com/mirrors.txt|g' /etc/apt/sources.list
RUN apt-get update -y

# Install python pip
RUN apt-get install -y python python-pip
RUN pip install --upgrade pip --no-cache-dir

# Install phantomjs
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y phantomjs

# Clean apt cache
RUN DEBIAN_FRONTEND=noninteractive apt-get clean

# Make temporary dir to put library file
RUN mkdir -p /tmp/app
COPY . /tmp/app

RUN pip install -U setuptools --no-cache-dir
RUN pip install /tmp/app --no-cache-dir

# Copy entrypoint to /server
RUN mkdir -p /app
COPY ./entrypoint.sh /app

# Run entrypoint at startup
ENTRYPOINT /app/entrypoint.sh
{'fraction_non_alphanumeric': 0.1019266625233064, 'fraction_numerical': 0.0, 'mean_word_length': 3.984520123839009, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, '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': '1583140', 'n_tokens_mistral': 580, 'n_tokens_neox': 534, 'n_words': 179}