| |
| FROM ubuntu:jammy |
| LABEL maintainer="Evil0ctal" |
|
|
| |
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| 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/* |
|
|
| |
| WORKDIR /app |
|
|
| |
| COPY . /app |
|
|
| |
| RUN mkdir -p /app/logs && chmod 777 /app/logs |
|
|
| |
| RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -U pip \ |
| && pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/ |
|
|
| |
| RUN pip3 install --no-cache-dir -r requirements.txt |
|
|
| |
| RUN chmod +x start.sh |
|
|
| |
| CMD ["./start.sh"] |
|
|