File size: 885 Bytes
b873107 1b7b318 b873107 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
FROM ubuntu:latest
RUN apt-get update && \
apt-get install -y ca-certificates wget tar curl unzip
WORKDIR /app
COPY . .
RUN chmod -R 777 /app
## Rclone
RUN curl https://rclone.org/install.sh | bash && rclone version
RUN --mount=type=secret,id=gist_rclone,mode=0444,required=true \
wget $(cat /run/secrets/gist_rclone) -O /app/rclone.conf && \
rclone config show --config /app/rclone.conf
RUN chmod a+x /app/rclone_copy_loop.sh
## Teldrive
RUN --mount=type=secret,id=gist_teldrive,mode=0444,required=true \
wget https://github.com/divyam234/teldrive/releases/latest/download/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
## Start
RUN chmod a+x /app/start.sh
CMD ["./start.sh"] |