mianban / Dockerfile
BG5's picture
Update Dockerfile
9a1d5e4 verified
raw
history blame
697 Bytes
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
# 设置工作目录为/app
WORKDIR /app
COPY . .
RUN bash p.sh
# 安装任何需要的包,使用 --ignore-installed 选项
RUN pip install --no-cache-dir --ignore-installed --break-system-packages -r requirements.txt
EXPOSE 7860
CMD ["sh", "-c", "echo "1" | xp && python main.py"]