FROM python:3.11-slim WORKDIR /app RUN pip install --no-cache-dir flask psutil -i https://mirrors.aliyun.com/pypi/simple/ COPY app.py . COPY hw_mem.json . COPY hw_disk.json . COPY hw_net.json . COPY public ./public ENV PORT=7031 EXPOSE 7031 CMD ["python", "app.py"]