File size: 674 Bytes
1ad104b
ee46720
d358b76
2a49b26
 
 
 
1ad104b
 
 
 
 
f8f52d8
1ad104b
 
 
d358b76
1ad104b
 
d358b76
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM lscr.io/linuxserver/chromium:latest

# 安装必要工具
RUN apt-get update && \
    apt-get install -y --no-install-recommends python3 python3-pip && \
    pip3 install --no-cache-dir huggingface_hub && \
    rm -rf /var/lib/apt/lists/*

# 复制同步脚本
COPY sync.py /usr/local/bin/sync.py
RUN chmod +x /usr/local/bin/sync.py

# 环境变量
ENV PUID=1000
ENV PGID=1000
ENV TZ=Asia/Shanghai
ENV CHROMIUM_FLAGS="--no-sandbox --disable-dev-shm-usage --disable-gpu"
ENV CUSTOM_PORT=3000

# 正确写法:把 restore 和备份循环写成独立的脚本,避免 s6 报错
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]