File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed
Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -28,29 +28,3 @@ ENV BASE_URL=$BASE_URL
2828
2929# Authenticate with UiPath during build
3030RUN uv run uipath auth --client-id="$CLIENT_ID" --client-secret="$CLIENT_SECRET" --base-url="$BASE_URL"
31-
32- # Create startup script
33- RUN cat > /app/startup.sh << 'EOF'
34- # !/bin/bash
35- set -e
36-
37- echo "Starting UiPath Retrieval Chain..."
38-
39- # Re-authenticate in case token expired
40- echo "Authenticating with UiPath..."
41- uv run uipath auth --client-id="$CLIENT_ID" --client-secret="$CLIENT_SECRET" --base-url="$BASE_URL"
42-
43- # Check if arguments are provided
44- if [ $# -eq 0 ]; then
45- echo "Running retrieval chain with default parameters..."
46- exec uv run python main.py
47- else
48- echo "Running retrieval chain with parameters: $@"
49- exec uv run python main.py "$@"
50- fi
51- EOF
52-
53- RUN chmod +x /app/startup.sh
54-
55- # Default command
56- CMD ["/app/startup.sh" ]
You can’t perform that action at this time.
0 commit comments