No description
.forgejo/workflows | ||
static/css | ||
templates | ||
.dockerignore | ||
.gitignore | ||
app.py | ||
docker-compose.yml | ||
latest.dockerfile | ||
LICENSE | ||
local.dockerfile | ||
README.md | ||
requirements.txt |
Installation
Setting up the environment
- Create a virtual environment:
python3 -m venv .venv
- Activate the virtual environment:
. .venv/bin/activate
- Install dependencies:
pip install requirements.txt
- Set the environment variables:
export GIT_URL=http://git.adrianux.net
export WEBSITE_URL=http://adrianux.net
export DEBUGMODE=False
- Run the app:
waitress-serve --listen=0.0.0.0:8080 app:app
Docker
Building the container
docker build -t adrianux:latest - < latest.dockerfile
Running the container
docker run adrianux:latest
Docker Compose
docker compose up adrianux