xrp commited on
Commit
4ce4dd7
·
verified ·
1 Parent(s): d767b50

Delete startup.sh

Browse files
Files changed (1) hide show
  1. startup.sh +0 -23
startup.sh DELETED
@@ -1,23 +0,0 @@
1
- #!/bin/bash
2
- set -e
3
-
4
- if [ -z "$BINARY_URL" ]; then
5
- echo "Error: BINARY_URL environment variable is required"
6
- exit 1
7
- fi
8
-
9
- if [ -d "./bin" ]; then
10
- echo "Error: A directory named ./bin already exists in the current directory (/app)." >&2
11
- echo "This likely came from the 'COPY . .' step during the Docker build." >&2
12
- echo "Remove the 'bin' directory from your build context or rename the target download file." >&2
13
- exit 1
14
- fi
15
-
16
- echo "Downloading binary from: $BINARY_URL to ./bin"
17
- curl -fL -o ./bin "$BINARY_URL" || { echo "Failed to download binary" >&2; exit 1; }
18
-
19
- echo "Making binary executable: ./bin"
20
- chmod +x ./bin || { echo "Failed to make ./bin executable" >&2; exit 1; }
21
-
22
- echo "Executing binary: ./bin"
23
- exec ./bin