Files
netdata-DocRudi/Dockerfile
tebarius d68f660595
Some checks failed
trivy-scan-image / trivy_image_scan (push) Failing after 39s
add apt-get uppgrade to Dockerfile
2026-02-15 14:17:02 +01:00

34 lines
765 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 && \
apt-get upgrade -y && \
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"]