File size: 661 Bytes
ea4ebd2
 
 
 
 
8de1080
ea4ebd2
 
 
 
 
 
dfb3f31
ea4ebd2
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ubuntu:latest

RUN apt-get update && \
    apt-get install -y ca-certificates tzdata wget tar curl


WORKDIR /app
COPY . .
RUN chmod -R 777 /app 

## Teldrive
RUN --mount=type=secret,id=gist_teldrive,mode=0444,required=true \
    wget https://github.com/divyam234/teldrive/releases/download/1.0.21/teldrive_linux_amd64.tar.gz -O /app/teldrive.tar.gz && \
    tar xvf /app/teldrive.tar.gz -C /app  && \
    wget $(cat /run/secrets/gist_teldrive) -O /app/teldrive.env && \
    chmod a+x /app/teldrive && chmod 777 /app/teldrive.env  && \
    touch /app/teldrive.db && \
    chmod 777 /app/teldrive.db

## Start
RUN chmod a+x /app/start.sh

CMD ["./start.sh"]