mianban / Dockerfile
BG5's picture
Update Dockerfile
3d1e595 verified
raw
history blame
671 Bytes
FROM ubuntu
# 设置环境变量,避免交互式配置
ARG DEBIAN_FRONTEND=noninteractive
# 设置时区为亚洲/上海
ENV TZ=Asia/Shanghai
# 设置工作目录为/app
WORKDIR /code
COPY . .
# 安装所需的软件包并清理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
# 下载并执行 install.sh 脚本
# RUN wget -O install.sh https://dl.xp.cn/dl/xp/install.sh && \
# bash install.sh
RUN chmod +x install.sh
RUN bash install.sh
EXPOSE 7860
CMD ["sh", "-c", "python main.py"]