A basic image manipulation API made with Flask and Docker.
Base setup inspired by examples from Docker image tiangolo/uwsgi-nginx-flask:python3.8
- Clone the repository
git clone git@github.com:martinbaste/simple-image-api.git
cd simple-image-api
- Build and run the image
bash docker_start.sh
Server with docs page is accessible at http://localhost:8080/
- Clone the repository
git clone git@github.com:martinbaste/simple-image-api.git
cd simple-image-api
- Create virtual environment
python3 -m venv venv
- Activate virtual environment and install dependencies
source venv/bin/activate
pip install -r requirements.txt
- Run the server
bash dev_start.sh
Server with docs page is accessible at http://localhost:8080/
- Base image should be an official python base image
- Switch from venv to poetry
- Make sure no vulnerabilities are exposed when downloading images from URLs