document_redaction / entrypoint.sh
seanpedrickcase's picture
Updated Dockerfile and entrypoint file to hopefully deal correctly with APP_MODE environment variable
7c7fd7c
raw
history blame
235 Bytes
#!/bin/sh
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