|
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 |
|
|
|
|
|
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 |
|
|
|
|
|
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 |
|
|
|
|
|
RUN chmod a+x /app/start.sh |
|
|
|
CMD ["./start.sh"] |