<commit_before># FROM resin/rpi-raspbian:jessie-20160831
# FROM armhfbuild/debian:jessie
FROM resin/rpi-raspbian:jessie

MAINTAINER "<NAME>" <<EMAIL>>

RUN apt-get update -y && \
    apt-get install -y git psmisc

# from install.sh:322
RUN apt-get install -y dialog nginx php5-fpm php5-cli php5-common php-apc apache2-utils gpac motion zip libav-tools gstreamer1.0-tools

RUN git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.git && \
    cd RPi_Cam_Web_Interface; git checkout 667dc11c0f; cd .. && \ 
    chmod u+x RPi_Cam_Web_Interface/*.sh

# workarounds
RUN sed -i '/sudoers/c\' RPi_Cam_Web_Interface/install.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/install.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/start.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/stop.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/remove.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/update.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/RPi_Cam_Web_Interface_Installer.sh && \
    sed -i 's/sudo shutdown -r now//g' RPi_Cam_Web_Interface/www/macros/error_hard.sh && \
    sed -i 's/status_file \/dev/status_file \/run/g' RPi_Cam_Web_Interface/etc/raspimjpeg/raspimjpeg.1

RUN mkdir -p /run/shm/mjpeg

COPY docker-entry.sh /RPi_Cam_Web_Interface
RUN chmod u+x /RPi_Cam_Web_Interface/docker-entry.sh

COPY config.txt /RPi_Cam_Web_Interface

COPY userconfig/uconfig /RPi_Cam_Web_Interface
COPY userconfig/schedule.json /RPi_Cam_Web_Interface

# ENTRYPOINT ./install.sh
# ENTRYPOINT /bin/bash
ENTRYPOINT /RPi_Cam_Web_Interface/docker-entry.sh
<commit_msg>add comments to Dockerfile<commit_after># FROM resin/rpi-raspbian:jessie-20160831
# FROM armhfbuild/debian:jessie
FROM resin/rpi-raspbian:jessie

MAINTAINER "<NAME>" <<EMAIL>>

RUN apt-get update -y && \
    apt-get install -y git psmisc

# from install.sh:322
RUN apt-get install -y dialog nginx php5-fpm php5-cli php5-common php-apc apache2-utils gpac motion zip libav-tools gstreamer1.0-tools

# download installation files
RUN git clone https://github.com/silvanmelchior/RPi_Cam_Web_Interface.git && \
    # comment the following line to download the untested most recent version
    cd RPi_Cam_Web_Interface; git checkout 667dc11c0f; cd .. && \ 
    chmod u+x RPi_Cam_Web_Interface/*.sh

# workarounds
RUN sed -i '/sudoers/c\' RPi_Cam_Web_Interface/install.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/install.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/start.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/stop.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/remove.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/update.sh && \
    sed -i 's/sudo //g' RPi_Cam_Web_Interface/RPi_Cam_Web_Interface_Installer.sh && \
    sed -i 's/sudo shutdown -r now//g' RPi_Cam_Web_Interface/www/macros/error_hard.sh && \
    sed -i 's/status_file \/dev/status_file \/run/g' RPi_Cam_Web_Interface/etc/raspimjpeg/raspimjpeg.1

# another workaround
RUN mkdir -p /run/shm/mjpeg

# entry file
COPY docker-entry.sh /RPi_Cam_Web_Interface
RUN chmod u+x /RPi_Cam_Web_Interface/docker-entry.sh

# application config, doesnt need modifying
COPY config.txt /RPi_Cam_Web_Interface

# user cnfigs, used to copy over exisiting configurations, TODO: add motion
COPY userconfig/uconfig /RPi_Cam_Web_Interface
COPY userconfig/schedule.json /RPi_Cam_Web_Interface

# ENTRYPOINT ./install.sh
# ENTRYPOINT /bin/bash
ENTRYPOINT /RPi_Cam_Web_Interface/docker-entry.sh

{'fraction_non_alphanumeric': 0.11741007194244604, 'fraction_numerical': 0.01381294964028777, 'mean_word_length': 3.7747252747252746, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4058822', 'n_tokens_mistral': 1428, 'n_tokens_neox': 1335, 'n_words': 287}