代码拉取完成,页面将自动刷新
# Use the official Ubuntu base image
FROM ubuntu:jammy
LABEL maintainer="Evil0ctal"
# Set non-interactive frontend (useful for Docker builds)
ENV DEBIAN_FRONTEND=noninteractive
# Update the package list and install Python and pip
RUN apt-get update && apt-get install -y --no-install-recommends \
python3.11 \
python3-pip \
python3.11-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Set a working directory
WORKDIR /app
# Copy the application source code to the container
COPY . /app
# Install pip and set the PyPI mirror (Aliyun)
RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -U pip \
&& pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# Install dependencies directly
RUN pip3 install --no-cache-dir -r requirements.txt
# Make the start script executable
RUN chmod +x start.sh
# Command to run on container start
CMD ["./start.sh"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。