Configure your superset_config.py to override the default parameters of superset which is declared in config.py file -
superset_config.py:
ROW_LIMIT=5000
If you are running your docker image with docker run command then it might not work. Because superset_config.py only execute if there is SUPERSET_CONFIG_PATH in os.environ. You need to add the SUPERSET_CONFIG_PATH in Dockerfile so that it will be picked up from os.environ.
To achieve this you need to configure your Dockerfile like this, add SUPERSET_CONFIG_PATH with ENV:
Dockerfile:
ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
FLASK_ENV=production \
SUPERSET_ENV=production \
SUPERSET_LOAD_EXAMPLES=yes \
CYPRESS_CONFIG=false \
MAPBOX_API_KEY='XXXXXX' \
FLASK_APP="superset.app:create_app()" \
PYTHONPATH="/app/pythonpath:/app/docker/pythonpath_prod" \
SUPERSET_HOME="/app/superset_home" \
SUPERSET_CONFIG_PATH="/path/to/your/superset_config.py" \
SUPERSET_PORT=8088
For example my file is available at /app/docker/superset_config.py then this will my SUPERSET_CONFIG_PATH.
Now build new image using Dockerfile.
You can check your image Env config by this command.
docker inspect <image-name:tag>
For any query please comment. Thanks.