kpinquan commited on
Commit
2e038f4
·
verified ·
1 Parent(s): d5f2955

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -1
Dockerfile CHANGED
@@ -1 +1,33 @@
1
- FROM ghcr.io/tiomehsh/cloudreve:latest
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM debian:latest
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ wget \
5
+ unzip
6
+ RUN apt-get update && apt-get install -y aria2
7
+ WORKDIR /app
8
+
9
+ RUN wget https://github.com/cloudreve/Cloudreve/files/14327249/cloudreveplus-linux-amd64v2.zip \
10
+ && unzip cloudreveplus-linux-amd64v2.zip \
11
+ && rm cloudreveplus-linux-amd64v2.zip
12
+
13
+ RUN chmod 777 /app
14
+ COPY aria2.conf /app/aria2.conf
15
+ # 复制配置文件模板到容器中
16
+ COPY conf.ini /app/conf.ini
17
+ # 定义 ARG 变量(构建时使用)
18
+ ARG SLAVE_SECRET
19
+ # 用 sed 替换配置文件中的占位符
20
+ RUN sed -i "s|TEMP_SLAVE_SECRET|${SLAVE_SECRET}|g" /app/conf.ini
21
+
22
+ RUN chmod +x ./cloudreveplus-linux-amd64v2
23
+
24
+ RUN mkdir -p /aria2/data
25
+
26
+ RUN chmod 777 /aria2/data
27
+
28
+ EXPOSE 8080
29
+
30
+ # CMD ["./cloudreve","-c","/app/conf.ini"]
31
+ COPY start.sh /app/start.sh
32
+ RUN chmod +x /app/start.sh
33
+ CMD ["/app/start.sh"]