<commit_before>rpi-cam-web-docker
# RPi-Cam-Web-Interface Docker

This repo provides a Dockerfile which will containerise the RPi-Cam-Web-Interface, as found [here on GitHub](https://github.com/silvanmelchior/RPi_Cam_Web_Interface) or [as described here on their wiki](http://elinux.org/RPi-Cam-Web-Interface).

## Notes
+ The license is MIT. 
+ It may not function as advertised. 
+ Submit pull requests to improve this project.
+ Currently only works with nginx server.
+ Contains MOSTLY workarounds for problems found during the normal install problems
+ Liable to break as the source github repo changes.

## File description
+ makefile - main makefile for controlling builds and containers
  + make debug(-dev) - run (dev) image in foreground
  + make run(-dev) - run (dev) image in detached mode
  + make build(-dev) - build all (dev) images from Dockerfile.dev

### Archive
+ Dockerfile - Main dockerfile for building the image
+ config.txt - Install configuration for quiet install
+ docker-build.sh - `# . docker-build.sh` Command to build the image
+ docker-run.sh - `# . docker-run.sh` Command to run the image as a detached container
+ docker-debug.sh - `# . docker-debug.sh` Command to run the command in the foreground for debugging
+ docker-entry.sh - Entrypoint script for the Dockerfile which is copied to the container
+ userconfig/ - Contains all the user configurable files, provided are examples from my system

## Installation

### Docker Hub
https://hub.docker.com/r/droogmic/rpi-cam-web/

### Git clone
```
git clone https://github.com/droogmic/rpi-cam-web-docker.git
cd rpi-cam-web-docker
make build
make run
```<commit_msg>edit README<commit_after># RPi-Cam-Web-Interface Docker

This repo provides a Dockerfile which will containerise the RPi-Cam-Web-Interface, as found [here on GitHub](https://github.com/silvanmelchior/RPi_Cam_Web_Interface) or [as described here on their wiki](http://elinux.org/RPi-Cam-Web-Interface).

## Notes
+ The license is MIT.
+ It may not function as advertised.
+ Submit pull requests to improve this project.
+ Currently only works with nginx server.
+ Contains workarounds for problems found during the normal install problems
+ Liable to break as the source github repo changes.

## File description
+ makefile - main makefile for controlling builds and containers
  + make ld-userconfig - load a user config located in userconfigs
  + make dev-build - docker build all images
  + make dev-run - docker run image in detached mode
  + make dev-debug - docker run image in foreground

## Installation

### Docker Hub
https://hub.docker.com/r/droogmic/rpi-cam-web/

### Git clone
```
git clone https://github.com/droogmic/rpi-cam-web-docker.git
cd rpi-cam-web-docker
make ld-userconfig
default
make dev-build
make dev-run
```
{'fraction_non_alphanumeric': 0.09486166007905138, 'fraction_numerical': 0.0, 'mean_word_length': 4.08029197080292, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '6140602', 'n_tokens_mistral': 856, 'n_tokens_neox': 802, 'n_words': 313}