Steps to build locally.
Required: Docker Installation in local machine
- Make sure you are in the project directory or if not
cd /image-compressor-api
- Run
docker build -t <image-name>:<image-tag> .
to build the docker image - Run
docker run -p 8080:8080 <image-name>:<image-tag>
to the application as container
Example Usage:
curl --location 'localhost:8080/compress' --form 'file=@"path/to/the/image"' --output 'compressed.png'