teldrive / Dockerfile
Suchan87's picture
Update Dockerfile
b873107
raw
history blame contribute delete
885 Bytes
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"]