StarrySkyWorld commited on
Commit
a5e0646
·
verified ·
1 Parent(s): a3d2bd4

Create entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +15 -0
entrypoint.sh ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ if [ -z "$DOWN_LINK" ]; then
5
+ echo "ERROR: DOWN_LINK is not set"
6
+ exit 1
7
+ fi
8
+
9
+ echo "Downloading source from $DOWN_LINK ..."
10
+ curl -fsSL "$DOWN_LINK" -o /tmp/source.zip
11
+ unzip -o /tmp/source.zip -d /app
12
+ rm /tmp/source.zip
13
+
14
+ echo "Starting application..."
15
+ exec python oauth.py