Suchan87 commited on
Commit
b873107
·
1 Parent(s): bea4921

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -25
Dockerfile CHANGED
@@ -1,28 +1,27 @@
1
- FROM alpine
 
 
2
 
3
- RUN apk update && apk --no-cache add curl bash supervisor unzip
4
 
5
  WORKDIR /app
6
-
7
- RUN adduser -D -u 1000 user
8
-
9
- COPY --chown=user:user . .
10
-
11
- RUN curl -s https://i.jpillora.com/caddyserver/caddy | bash \
12
- && curl -s https://i.jpillora.com/divyam234/teldrive | bash \
13
- && curl -s https://i.jpillora.com/divyam234/rclone | bash \
14
- && curl -s https://i.jpillora.com/divyam234/filebrowser | bash
15
-
16
- RUN chown -R user:user /app
17
-
18
- RUN --mount=type=secret,id=GIST_TELDRIVE,mode=0444,required=true \
19
- curl -s $(cat /run/secrets/GIST_TELDRIVE) -o /app/teldrive.env
20
-
21
- RUN --mount=type=secret,id=GIST_RCLONE,mode=0444,required=true \
22
- curl -s $(cat /run/secrets/GIST_RCLONE) -o /app/rclone.conf
23
-
24
- RUN chmod a+x db_backup.sh webdav.sh teldrive.sh filebrowser.sh
25
-
26
- USER user
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"]