<commit_before># DOCKER-VERSION 0.3.4
FROM    ubuntu

MAINTAINER <NAME> <<EMAIL>>

# Based off of instructions by Miguel Grinberg 
# http://blog.miguelgrinberg.com/post/how-to-build-and-run-mjpg-streamer-on-the-raspberry-pi

# Turn off intaractive mode to reduce noise and errors
ENV	DEBIAN_FRONTEND noninteractive

# Update path
ENV	PATH	/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH	/usr/local/lib

# Run updates and install base libs & tools
RUN	apt-get -y update
RUN	apt-get -y install build-essential wget unzip \
	libjpeg8-dev imagemagick libv4l-dev

# MJPG-Streamer looks for videodev.h instead of videodev2.h
RUN ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h

RUN wget --no-check-certificate \
	http://sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip && \
	unzip mjpg-streamer-code-182.zip && \
	cd mjpg-streamer-code-182/mjpg-streamer && \
	make mjpg_streamer input_file.so output_http.so output_file.so && \
	make install && \
	cd / ; rm -rf mjpeg*


# This will force it to pull latest script and execute
#ENTRYPOINT ["/bin/bash", "-c", "wget https://raw.githubusercontent.com/STH-Dev/STHbench.sh/master/STHbench-Dev012.11.sh;chmod a+x *.sh ;./STHbench-Dev012.11.sh"]<commit_msg>Working Docker image<commit_after># DOCKER-VERSION 0.3.4
FROM    ubuntu

MAINTAINER <NAME> <<EMAIL>>

# Based off of instructions by <NAME> 
# http://blog.miguelgrinberg.com/post/how-to-build-and-run-mjpg-streamer-on-the-raspberry-pi

# Turn off intaractive mode to reduce noise and errors
ENV	DEBIAN_FRONTEND noninteractive

# Update path
ENV	PATH	/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ENV LD_LIBRARY_PATH	/usr/local/lib

# Run updates and install base libs & tools
RUN	apt-get -y update
RUN	apt-get -y install build-essential wget unzip \
	libjpeg8-dev imagemagick libv4l-dev

# MJPG-Streamer looks for videodev.h instead of videodev2.h
RUN ln -s /usr/include/linux/videodev2.h /usr/include/linux/videodev.h

RUN wget --no-check-certificate \
	http://sourceforge.net/code-snapshots/svn/m/mj/mjpg-streamer/code/mjpg-streamer-code-182.zip && \
	unzip mjpg-streamer-code-182.zip && \
	cd mjpg-streamer-code-182/mjpg-streamer && \
	make mjpg_streamer input_file.so output_http.so output_file.so && \
	make install && \
	cd / ; rm -rf mjpg*

VOLUME ["/data"]
EXPOSE 8080

RUN	echo 'mjpg_streamer -i "input_file.so -f /data -n webcam.jpg" -o "output_http.so -w /usr/local/www"' > /start.sh && chmod a+rx /start.sh

ENTRYPOINT /start.sh
{'fraction_non_alphanumeric': 0.13322822230981474, 'fraction_numerical': 0.018131651556957035, 'mean_word_length': 3.735074626865672, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 11, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '1629984', 'n_tokens_mistral': 1057, 'n_tokens_neox': 991, 'n_words': 217}