redonehub/exposer

By redonehub

Updated almost 2 years ago

This Python script is a Flask application that serves JSON data from a file over HTTP.

Image
Languages & frameworks
0

98

redonehub/exposer repository overview

This Python script is a Flask application that serves JSON data from a file over HTTP. It's flexible as it allows you to specify the file path and port number using environment variables.

API_FILE: This environment variable specifies the path to the file from which the JSON data will be read. If not provided, it defaults to /data/content.

API_PORT: This environment variable specifies the port number on which the Flask application will listen for incoming HTTP requests. If not provided, it defaults to 8080.

For example: docker run -d --name flask_api -e API_FILE=/data/content -e API_PORT=9876 redonehub/exposer

Tag summary

Content type

Image

Digest

sha256:2834770ad

Size

45.7 MB

Last updated

almost 2 years ago

docker pull redonehub/exposer