Before running the project, ensure you have:
- Docker installed (Get Docker)
You can run the project in a Docker container using the following steps:
Clone the repository and navigate into the project folder:
git clone https://github.com/harvestingmoon/OBrainRot.git
cd OBrainRotBuild the Docker image:
docker build -t obrainrot:latest .Run the container interactively:
docker run -it --rm -p 8000:5000 obrainrot:latest /bin/bashThis command:
- Starts an interactive terminal (
-it) - Removes the container after it stops (
--rm) - Maps port 5000 inside the container to 8000 on your host machine (
-p 8000:5000) - Runs the container using the latest image (
obrainrot:latest) - Opens a Bash shell inside the container (
/bin/bash)
Inside the running container, start the Flask application:
python main.pyTo stop the running container, press:
CTRL + CSince we used the --rm flag, the container will be removed automatically.
- FFmpeg is pre-installed in the Docker image.
- The project requires
requirements.txtdependencies, which are installed automatically.