Create Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|