rickroller

Quick Start

Deploy RickRoller

RickRoller is a Python application that can run locally or from a Docker container.

Run directly

This project is coded in Python and uses poetry. After cloning the project, run:

# install dependencies and package (to do once)
poetry install

# launch a basic Flask server (for development only)
poetry run rickroll --debug # use --debug/-d for auto-reload

Using a Docker container

The Docker image is available for download from GitHub packages (ghcr.io) and Docker Hub (docker.io). For example:

docker run --rm -p 8080:8080 derlin/rickroller:latest

If you want to build your own, clone the project and run:

docker build -t derlin/rickroller:latest .
docker run --rm -p 8080:8080 derlin/rickroller:latest

The container exposes port 8080. In case you are serving the app under a prefix, pass this environment variable to the docker container:

SCRIPT_NAME=/your-prefix

To increase the number of HTTP workers (see gunicorn: How Many Workers?), pass this environment variable:

WORKERS=3 # default to 2

Available Environment Variables

The application can be tuned using environment variables.

Security

Persistence

See docs/persistence.

Docker