Files
netdata-DocRudi/Dockerfile
tebarius 49679e8c93
All checks were successful
trivy-scan-image / trivy_image_scan (push) Successful in 27s
remove unnecessary venv
2026-02-04 22:41:28 +01:00

33 lines
737 B
Docker

FROM python:3.14-slim
ARG TARGETPLATFORM
ARG BUILDPLATFORM
LABEL authors="tebarius"
LABEL description="netdata-DocRudi"
ENV PYTHONDONTWRITEBYTECODE=1
ENV PYTHONUNBUFFERED=1
ENV SERVER_PORT=19998
RUN apt-get update && \
if [ "$TARGETPLATFORM" = "linux/arm/v7" ] || [ "$TARGETPLATFORM" = "linux/386" ]; then \
apt-get install -y --no-install-recommends zlib1g-dev libjpeg-dev gcc; \
fi && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY ./app /app/
RUN python -m pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt \
&& useradd -m -u 1000 rudi \
&& chown -R rudi:rudi /app
USER rudi
EXPOSE $SERVER_PORT
CMD ["sh", "-c", "python netdata_DocRudi.py"]