mirror of
https://github.com//cppla/ServerStatus
synced 2026-03-23 06:09:48 +08:00
client alpine images
This commit is contained in:
@@ -1,13 +1,9 @@
|
|||||||
FROM python:3.11-slim
|
FROM alpine:3.13
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Runtime deps for client-linux.py (ss/ps) and optional psutil client
|
# Runtime deps for client-linux.py and client-psutil.py
|
||||||
RUN apt-get update -y \
|
RUN apk add --no-cache python3 py3-psutil iproute2 procps
|
||||||
&& apt-get install -y --no-install-recommends iproute2 procps \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
RUN pip install --no-cache-dir psutil
|
|
||||||
|
|
||||||
COPY clients/client-linux.py /app/client-linux.py
|
COPY clients/client-linux.py /app/client-linux.py
|
||||||
COPY clients/client-psutil.py /app/client-psutil.py
|
COPY clients/client-psutil.py /app/client-psutil.py
|
||||||
|
|||||||
Reference in New Issue
Block a user