Update Dockerfile
Browse files- Dockerfile +20 -21
Dockerfile
CHANGED
@@ -1,22 +1,21 @@
|
|
1 |
-
FROM ubuntu:latest
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
-
RUN
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
RUN
|
12 |
-
|
13 |
-
|
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.3-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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|