<commit_before>FROM python:2.7

ENV PYTHONUNBUFFERED 1

RUN apt-get -y update && apt-get install -y \
	curl \
	libmysqlclient-dev \
	build-essential

RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y nodejs

RUN mkdir /code
ADD ./specify7 /code/

WORKDIR /code

RUN pip install -r requirements.txt
RUN make

VOLUME /code
EXPOSE 8000

#RUN sed -i "s/127\.0\.0\.1/0\.0\.0\.0/g" specifyweb/settings/__init__.py

CMD ["python", "specifyweb/manage.py", "runserver", "0.0.0.0:8000"]<commit_msg>fix JS dependency installs for the dockerized build<commit_after>FROM python:2.7

ENV PYTHONUNBUFFERED 1

RUN apt-get -y update && apt-get install -y \
	curl \
	libmysqlclient-dev \
	build-essential

RUN curl -sL https://deb.nodesource.com/setup_4.x | bash -
RUN apt-get install -y nodejs

RUN mkdir /code
ADD ./specify7 /code/

WORKDIR /code

RUN pip install -r requirements.txt

# attempt to fix some complainst from frontend JS dependencies installs
RUN npm install minimatch@3.0.2
RUN echo '{ "allow_root": true }' > /root/.bowerrc

RUN make

VOLUME /code
EXPOSE 8000

#RUN sed -i "s/127\.0\.0\.1/0\.0\.0\.0/g" specifyweb/settings/__init__.py

CMD ["python", "specifyweb/manage.py", "runserver", "0.0.0.0:8000"]
{'fraction_non_alphanumeric': 0.13846153846153847, 'fraction_numerical': 0.046153846153846156, 'mean_word_length': 3.3216783216783217, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '572988', 'n_tokens_mistral': 514, 'n_tokens_neox': 469, 'n_words': 133}