12 lines
381 B
Docker
12 lines
381 B
Docker
FROM python:3.11-slim
|
|
WORKDIR /app
|
|
RUN apt-get update && apt-get install -y --no-install-recommends iproute2 util-linux && rm -rf /var/lib/apt/lists/* && 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"]
|