This project is a Flask application that proxies and caches Google Fonts (CSS and font files) to make them available without tracking.
-
Ensure you have
uvinstalled for dependency management. -
Initialize the environment (if not already done):
uv init
-
Install dependencies:
uv pip install -r requirements.txt
-
Run the application:
flask run
The application will be available at
http://127.0.0.1:5000.
-
Build the Docker image:
docker build -t font-proxy . -
Run the application using Docker:
docker run -p 5000:5000 font-proxy
Alternatively, you can use docker-compose:
-
Start the application:
docker-compose up
-
The application will be available at
http://127.0.0.1:5000.
- Ensure that the
pyproject.tomlfile is properly configured for dependency management. - For production deployment, use
gunicornas the WSGI server.