Updated Dockerfile and entrypoint file to hopefully deal correctly with APP_MODE environment variable
7c7fd7c
echo "Starting in APP_MODE: $APP_MODE" | |
if [ "$APP_MODE" = "lambda" ]; then | |
echo "Starting in Lambda mode..." | |
exec python -m awslambdaric "$@" | |
else | |
echo "Starting in Gradio mode..." | |
exec python app.py "$@" | |
fi |