Update Dockerfile
Browse files- Dockerfile +24 -25
Dockerfile
CHANGED
|
@@ -1,28 +1,27 @@
|
|
| 1 |
-
FROM
|
|
|
|
|
|
|
| 2 |
|
| 3 |
-
RUN apk update && apk --no-cache add curl bash supervisor unzip
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
-
|
| 7 |
-
RUN
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
RUN
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
RUN chmod a+x
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
CMD ["supervisord", "-c", "/app/supervisord.conf"]
|
|
|
|
| 1 |
+
FROM ubuntu:latest
|
| 2 |
+
RUN apt-get update && \
|
| 3 |
+
apt-get install -y ca-certificates wget tar curl unzip
|
| 4 |
|
|
|
|
| 5 |
|
| 6 |
WORKDIR /app
|
| 7 |
+
COPY . .
|
| 8 |
+
RUN chmod -R 777 /app
|
| 9 |
+
|
| 10 |
+
## Rclone
|
| 11 |
+
RUN curl https://rclone.org/install.sh | bash && rclone version
|
| 12 |
+
RUN --mount=type=secret,id=gist_rclone,mode=0444,required=true \
|
| 13 |
+
wget $(cat /run/secrets/gist_rclone) -O /app/rclone.conf && \
|
| 14 |
+
rclone config show --config /app/rclone.conf
|
| 15 |
+
RUN chmod a+x /app/rclone_copy_loop.sh
|
| 16 |
+
|
| 17 |
+
## Teldrive
|
| 18 |
+
RUN --mount=type=secret,id=gist_teldrive,mode=0444,required=true \
|
| 19 |
+
wget https://github.com/divyam234/teldrive/releases/latest/download/teldrive_linux_amd64.tar.gz -O /app/teldrive.tar.gz && \
|
| 20 |
+
tar xvf /app/teldrive.tar.gz -C /app && \
|
| 21 |
+
wget $(cat /run/secrets/gist_teldrive) -O /app/teldrive.env && \
|
| 22 |
+
chmod a+x /app/teldrive && chmod 777 /app/teldrive.env
|
| 23 |
+
|
| 24 |
+
## Start
|
| 25 |
+
RUN chmod a+x /app/start.sh
|
| 26 |
+
|
| 27 |
+
CMD ["./start.sh"]
|
|
|
|
|
|