Runs image-resizer in Docker on Alpine Linux.
Run the Docker image, publish port 3001 and provide configuration via environment variables:
$ docker run --rm -ti \
--name image-server \
-p 3001:3001 \
-e DEFAULT_SOURCE=wikipedia \
wjordan/image-resizer
You can also run as a daemon (replace --rm -ti
with -d
), then use docker logs -f image-server
to watch the log output on-demand.
Request an image-resizer url from your browser, e.g., http://localhost:3001/h200-cfit/commons/c/c4/Louis_Armstrong2.jpg
.
See the documentation for image-resizer for additional environment variables and API usage.
Licensed under MIT