dimag69 commited on
Commit
3531d42
1 Parent(s): a9c6440

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -21
Dockerfile CHANGED
@@ -1,22 +1,21 @@
1
- FROM ubuntu:latest
 
 
 
 
 
 
 
 
2
 
3
- RUN apt-get update && \
4
- apt-get install -y ca-certificates tzdata wget tar curl
5
-
6
- WORKDIR /app
7
- COPY . .
8
- RUN chmod -R 777 /app
9
-
10
- ## Teldrive
11
- RUN --mount=type=secret,id=gist_teldrive,mode=0444,required=true \
12
- wget https://github.com/divyam234/teldrive/releases/latest/download/teldrive_linux_amd64.tar.gz -O /app/teldrive.tar.gz && \
13
- tar xvf /app/teldrive.tar.gz -C /app && \
14
- wget $(cat /run/secrets/gist_teldrive) -O /app/teldrive.env && \
15
- chmod a+x /app/teldrive && chmod 777 /app/teldrive.env && \
16
- touch /app/teldrive.db && \
17
- chmod 777 /app/teldrive.db
18
-
19
- ## Start
20
- RUN chmod a+x /app/start.sh
21
-
22
- CMD ["./start.sh"]
 
1
+ FROM ubuntu:latest
2
+
3
+ RUN apt-get update && \
4
+ apt-get install -y ca-certificates tzdata wget tar curl
5
+
6
+ WORKDIR /app
7
+ COPY . .
8
+ RUN chmod -R 777 /app
9
+
10
 
11
+ RUN --mount=type=secret,id=gist_teldrive,mode=0444,required=true \
12
+ wget https://github.com/divyam234/teldrive/releases/latest/download/teldrive-1.1.9-linux-amd64.tar.gz -O /app/teldrive.tar.gz && \
13
+ tar xvf /app/teldrive.tar.gz -C /app && \
14
+ wget $(cat /run/secrets/gist_teldrive) -O /app/config.toml && \
15
+ chmod a+x /app/teldrive && chmod 777 /app/config.toml && \
16
+ touch /app/session.db && \
17
+ chmod 777 /app/session.db
18
+
19
+ RUN chmod a+x /app/start.sh
20
+
21
+ CMD ["./start.sh"]