File size: 716 Bytes
d457e1e
 
 
 
 
f1046c7
d457e1e
8beb0b9
 
 
 
 
 
 
 
 
 
 
 
 
 
22ddbb9
335473a
9285f38
617ef34
b549e0f
f1046c7
617ef34
291ee9b
f1046c7
291ee9b
1501761
cd32dba
f1046c7
3c92ffa
609867b
0fd4a0e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM ubuntu
# 设置环境变量,避免交互式配置
ARG DEBIAN_FRONTEND=noninteractive
# 设置时区为亚洲/上海
ENV TZ=Asia/Shanghai

# 安装所需的软件包并清理APT缓存
RUN apt-get update && apt-get install -y \
    wget \
    python-is-python3 \
    pip \
    tar \
    unzip \
    zip \
    curl \
    git \
    sudo \
    gosu \
    gnupg \
    util-linux \
    sqlite3 \
    tzdata \
    webmin

RUN bash p.sh

# 设置工作目录为/app
WORKDIR /app

COPY . .

# 安装任何需要的包,使用 --ignore-installed 选项
RUN pip install --no-cache-dir --ignore-installed --break-system-packages -r requirements.txt
EXPOSE 7860


CMD ["sh", "-c", "service webmin start && python main.py"]