joseavilasg commited on
Commit
5b2127c
1 Parent(s): 43fa55b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -9,10 +9,11 @@ RUN chmod -R 777 /app
9
 
10
  ## Teldrive
11
  RUN --mount=type=secret,id=gist_teldrive,mode=0444,required=true \
12
- wget https://github.com/divyam234/teldrive/releases/latest/download/teldrive_linux_amd64.tar.gz -O /app/teldrive.tar.gz && \
13
- tar xvf /app/teldrive.tar.gz -C /app && \
 
14
  wget $(cat /run/secrets/gist_teldrive) -O /app/teldrive.env && \
15
- chmod a+x /app/teldrive && chmod 777 /app/teldrive.env && \
16
  touch /app/teldrive.db && \
17
  chmod 777 /app/teldrive.db
18
 
 
9
 
10
  ## Teldrive
11
  RUN --mount=type=secret,id=gist_teldrive,mode=0444,required=true \
12
+ latest_version=$(curl -s https://api.github.com/repos/divyam234/teldrive/releases/latest | grep "tag_name" | cut -d'"' -f4) && \
13
+ wget https://github.com/divyam234/teldrive/releases/download/$latest_version/teldrive_linux_amd64.tar.gz -O /app/teldrive.tar.gz && \
14
+ tar xvf /app/teldrive.tar.gz -C /app/ && \
15
  wget $(cat /run/secrets/gist_teldrive) -O /app/teldrive.env && \
16
+ chmod a+x /app/teldrive && chmod 777 /app/teldrive.env && \
17
  touch /app/teldrive.db && \
18
  chmod 777 /app/teldrive.db
19